chiark / gitweb /
server/tripe.h: Allow `break' from FOREACH_PEER.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 27 Jun 2011 13:08:11 +0000 (14:08 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 21 Mar 2012 15:54:34 +0000 (15:54 +0000)
The body was wrapped in do ... while (0); so we have to remove this.

server/tripe.h

index e382487..adb87e2 100644 (file)
@@ -1310,7 +1310,7 @@ extern void p_destroy(peer */*p*/);
 #define FOREACH_PEER(p, stuff) do {                                    \
   peer_iter i_;                                                                \
   peer *p;                                                             \
 #define FOREACH_PEER(p, stuff) do {                                    \
   peer_iter i_;                                                                \
   peer *p;                                                             \
-  for (p_mkiter(&i_); (p = p_next(&i_)) != 0; ) do stuff while (0);    \
+  for (p_mkiter(&i_); (p = p_next(&i_)) != 0; ) stuff                  \
 } while (0)
 
 /* --- @p_mkiter@ --- *
 } while (0)
 
 /* --- @p_mkiter@ --- *