mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 18:22:18 +00:00
Improved install script and fixed some warnings.
This commit is contained in:
parent
186a64f4ac
commit
6b234354cd
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
make clean
|
make clean
|
||||||
autoreconf -i
|
autoreconf -i
|
||||||
CFLAGS="-g" ./configure
|
CFLAGS="-g" "-std=c99" ./configure
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
@ -64,9 +64,8 @@ void response_cleanup(char response[BUFFER_LENGTH]) {
|
|||||||
char remove = 'a';
|
char remove = 'a';
|
||||||
|
|
||||||
char* c;
|
char* c;
|
||||||
int x;
|
|
||||||
char* pPosition;
|
char* pPosition;
|
||||||
while(pPosition = strchr(response, 'a') != NULL) {
|
while((pPosition = strchr(response, 'a')) != NULL) {
|
||||||
if ((c = index(response, remove)) != NULL) {
|
if ((c = index(response, remove)) != NULL) {
|
||||||
size_t len_left = sizeof(response) - (c+1-response);
|
size_t len_left = sizeof(response) - (c+1-response);
|
||||||
memmove(c, c+1, len_left);
|
memmove(c, c+1, len_left);
|
||||||
|
Loading…
Reference in New Issue
Block a user