From: Sebastian Hahn Date: Wed, 27 Jan 2010 21:11:42 +0000 (+0100) Subject: Fix comments for getinfo_helper_t X-Git-Tag: tor-0.2.2.9-alpha~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02889bae21d31b3c7d8a5bc2dacd5360d479874c;p=thirdparty%2Ftor.git Fix comments for getinfo_helper_t rieo pointed out something isn't right here --- diff --git a/src/or/control.c b/src/or/control.c index 13a5f46b11..c08d6a2440 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1768,8 +1768,9 @@ getinfo_helper_events(control_connection_t *control_conn, /** Callback function for GETINFO: on a given control connection, try to * answer the question q and store the newly-allocated answer in - * *a. If there's no answer, or an error occurs, just don't set - * a. Return 0. + * *a. If an internal error occurs, return -1. On success, or if + * the key is not recognized, return 0. Do not set a if the key is + * not recognized. */ typedef int (*getinfo_helper_t)(control_connection_t *, const char *q, char **a);