Ancient gcc does not like you when you declare variables in the middle of a block

svn:r5437
This commit is contained in:
Peter Palfrader 2005-11-20 16:53:49 +00:00
parent b9d37a2d58
commit a48b722432

View File

@ -464,9 +464,10 @@ dirserv_add_descriptor(const char *desc, const char **msg)
control_event_or_authdir_new_descriptor("REJECTED", desc, *msg); control_event_or_authdir_new_descriptor("REJECTED", desc, *msg);
return r == -1 ? 0 : -1; return r == -1 ? 0 : -1;
} else { } else {
smartlist_t *changed;
control_event_or_authdir_new_descriptor("ACCEPTED", desc, *msg); control_event_or_authdir_new_descriptor("ACCEPTED", desc, *msg);
smartlist_t *changed = smartlist_create(); changed = smartlist_create();
smartlist_add(changed, ri); smartlist_add(changed, ri);
control_event_descriptors_changed(changed); control_event_descriptors_changed(changed);
smartlist_free(changed); smartlist_free(changed);