differing return type in definition and declaration of dirserv_add_extrainfo
We're trying to compile Tor with cparser and got an error.
src/or/dirserv.c:803:1: error: declaration 'was_router_added_t dirserv_add_extrainfo(extrainfo_t*, const char**)' is incompatible with 'int dirserv_add_extrainfo(extrainfo_t*, const char**)' (declared at line 96:12)
The attached patch fixes this error due to inconsistently declared a return type (once declared as 'enum', once as 'int').
Trac:
Username: schachmat