[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



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);