[or-cvs] Oops; make sure that break; and continue; work within SMART...

Nick Mathewson nickm at seul.org
Fri Oct 15 20:49:34 UTC 2004


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv11536/src/common

Modified Files:
	util.h 
Log Message:
Oops; make sure that break; and continue; work within SMARTLIST_FOREACH

Index: util.h
===================================================================
RCS file: /home/or/cvsroot/src/common/util.h,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- util.h	15 Oct 2004 04:45:47 -0000	1.99
+++ util.h	15 Oct 2004 20:49:31 -0000	1.100
@@ -154,7 +154,7 @@
     for(var ## _sl_idx = 0; var ## _sl_idx < var ## _sl_len;    \
         ++var ## _sl_idx) {                                     \
       var = smartlist_get((sl),var ## _sl_idx);                 \
-      do {cmd;} while(0);                                       \
+      cmd;                                                      \
     } } while (0)
 
 /* Map from const char * to void*. Implemented with a splay tree. */



More information about the tor-commits mailing list