diff --git a/Install-Ntk-Debug.sh b/Install-Ntk-Debug.sh index 59c5e89..c4918a6 100755 --- a/Install-Ntk-Debug.sh +++ b/Install-Ntk-Debug.sh @@ -2,6 +2,6 @@ make clean autoreconf -i -CFLAGS="-g" ./configure +CFLAGS="-g" "-std=c99" ./configure make sudo make install diff --git a/src/Ntk-Console/Netsukuku-Console.c b/src/Ntk-Console/Netsukuku-Console.c index 9f4ddba..598be3e 100644 --- a/src/Ntk-Console/Netsukuku-Console.c +++ b/src/Ntk-Console/Netsukuku-Console.c @@ -64,9 +64,8 @@ void response_cleanup(char response[BUFFER_LENGTH]) { char remove = 'a'; char* c; - int x; char* pPosition; - while(pPosition = strchr(response, 'a') != NULL) { + while((pPosition = strchr(response, 'a')) != NULL) { if ((c = index(response, remove)) != NULL) { size_t len_left = sizeof(response) - (c+1-response); memmove(c, c+1, len_left);