From 6b234354cddc323f8c8808a4cd5213c36acd4c6b Mon Sep 17 00:00:00 2001 From: MissValeska Date: Sun, 17 Aug 2014 09:35:46 -0700 Subject: [PATCH] Improved install script and fixed some warnings. --- Install-Ntk-Debug.sh | 2 +- src/Ntk-Console/Netsukuku-Console.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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);