Browse Source

Improved install script and fixed some warnings.

MissValeska 10 years ago
parent
commit
6b234354cd
2 changed files with 2 additions and 3 deletions
  1. 1
    1
      Install-Ntk-Debug.sh
  2. 1
    2
      src/Ntk-Console/Netsukuku-Console.c

+ 1
- 1
Install-Ntk-Debug.sh View File

@@ -2,6 +2,6 @@
2 2
 
3 3
 make clean
4 4
 autoreconf -i
5
-CFLAGS="-g" ./configure
5
+CFLAGS="-g" "-std=c99" ./configure
6 6
 make
7 7
 sudo make install

+ 1
- 2
src/Ntk-Console/Netsukuku-Console.c View File

@@ -64,9 +64,8 @@ void response_cleanup(char response[BUFFER_LENGTH]) {
64 64
     char remove = 'a';
65 65
 
66 66
     char* c;
67
-    int x;
68 67
     char* pPosition;
69
-    while(pPosition = strchr(response, 'a') != NULL)  {
68
+    while((pPosition = strchr(response, 'a')) != NULL)  {
70 69
         if ((c = index(response, remove)) != NULL) {
71 70
         size_t len_left = sizeof(response) - (c+1-response);
72 71
         memmove(c, c+1, len_left);

Loading…
Cancel
Save