Fix stupid mistake, don't know why gcc didn't complained locally
authorHenning Rogge <hrogge@gmail.com>
Tue, 13 May 2014 19:20:33 +0000 (21:20 +0200)
committerHenning Rogge <hrogge@gmail.com>
Tue, 13 May 2014 19:20:33 +0000 (21:20 +0200)
lib/txtinfo/src/olsrd_txtinfo.c

index 9081329..b2bef90 100644 (file)
@@ -311,7 +311,7 @@ ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int flags __att
       /* input was much too long, just skip the rest */
       char dummy[1024];
 
-      while (recv(ipc_connection, (void *)&dummy, sizeof(dummy)) == sizeof(dummy), 0);
+      while (recv(ipc_connection, (void *)&dummy, sizeof(dummy), 0) == sizeof(dummy), 0);
     }
     if (0 < s) {
       requ[s] = 0;
@@ -341,8 +341,6 @@ ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int flags __att
       }
     }
 
-    if (s == sizeof(requ)-1) {
-    }
     if ( send_what == 0 ) send_what = SIW_ALL;
   }