Fix strange coding in the 'long headers' fix
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 20 May 2014 11:52:31 +0000 (13:52 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 20 May 2014 12:02:40 +0000 (14:02 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c
lib/txtinfo/src/olsrd_txtinfo.c

index f29a37c..7760081 100644 (file)
@@ -530,7 +530,7 @@ ipc_action(int fd, void *data __attribute__ ((unused)), unsigned int flags __att
       /* input was too much long, just skip the rest */
       char dummy[1024];
 
-      while (recv(ipc_connection, (void *)&dummy, sizeof(dummy), 0) == sizeof(dummy), 0);
+      while (recv(ipc_connection, (void *)&dummy, sizeof(dummy), 0) == sizeof(dummy));
     }
     if (0 < s) {
       requ[s] = 0;
index 2bcce41..42c8110 100644 (file)
@@ -308,7 +308,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), 0) == sizeof(dummy), 0);
+      while (recv(ipc_connection, (void *)&dummy, sizeof(dummy), 0) == sizeof(dummy));
     }
     if (0 < s) {
       requ[s] = 0;