[or-cvs] Ancient gcc does not like you when you declare variables in...

Peter Palfrader weasel at seul.org
Sun Nov 20 16:53:51 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv20188

Modified Files:
	dirserv.c 
Log Message:
Ancient gcc does not like you when you declare variables in the middle of a block

Index: dirserv.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.268
retrieving revision 1.269
diff -u -d -r1.268 -r1.269
--- dirserv.c	19 Nov 2005 18:35:43 -0000	1.268
+++ dirserv.c	20 Nov 2005 16:53:49 -0000	1.269
@@ -464,9 +464,10 @@
       control_event_or_authdir_new_descriptor("REJECTED", desc, *msg);
     return r == -1 ? 0 : -1;
   } else {
+    smartlist_t *changed;
     control_event_or_authdir_new_descriptor("ACCEPTED", desc, *msg);
 
-    smartlist_t *changed = smartlist_create();
+    changed = smartlist_create();
     smartlist_add(changed, ri);
     control_event_descriptors_changed(changed);
     smartlist_free(changed);



More information about the tor-commits mailing list