quagga: minor readability fixes
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 25 Feb 2015 20:47:42 +0000 (21:47 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 25 Feb 2015 20:47:56 +0000 (21:47 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/quagga/src/client.c

index 9653f94..1297692 100644 (file)
@@ -194,11 +194,11 @@ zclient_read(ssize_t * size)
 
     /* detect zebra packet fragmentation */
     do {
-      memcpy(&length, buf + offset, sizeof length);
+      memcpy(&length, buf + offset, sizeof(length));
       length = ntohs(length);
       offset += length;
     }
-    while (*size >= (ssize_t) (offset + sizeof length));
+    while (*size >= (ssize_t) (offset + sizeof(length)));
     /* set blocking socket on fragmented packet */
     if (*size != offset)
       (void)fcntl(zebra.sock, F_SETFL, sockstatus);