Backport candidate: correctly set the purpose of routers that are inserted by the controller with purpose=controller.
svn:r10071
- Correct the control spec to match how the code actually responds
to 'getinfo addr-mappings/*'.
+ o Minor bugfixes (controller):
+ - Actually set the purpose correctly for descriptors inserted with
+ purpose=controller.
+
o Code simplifications and refactoring
- Stop passing around circuit_t and crypt_path_t pointers that are
implicit in other procedure arguments.
ROUTER_PURPOSE_GENERAL;
else if (!strcmp(*string, "controller"))
*purpose = for_circuits ? CIRCUIT_PURPOSE_CONTROLLER :
- ROUTER_PURPOSE_GENERAL;
+ ROUTER_PURPOSE_CONTROLLER;
else { /* not a recognized purpose */
return -1;
}