aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-01-27 22:11:42 +0100
committerSebastian Hahn <sebastian@torproject.org>2010-01-27 22:12:43 +0100
commit02889bae21d31b3c7d8a5bc2dacd5360d479874c (patch)
tree3ad2ac2b575bc1e9a287ea88d1c872f34841cd29 /src/or/control.c
parentca148f7219b8bd9aef03f8ebc052d67d5033ab30 (diff)
downloadtor-02889bae21d31b3c7d8a5bc2dacd5360d479874c.tar.gz
tor-02889bae21d31b3c7d8a5bc2dacd5360d479874c.zip
Fix comments for getinfo_helper_t
rieo pointed out something isn't right here
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c5
1 files changed, 3 insertions, 2 deletions
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 <b>q</b> and store the newly-allocated answer in
- * *<b>a</b>. If there's no answer, or an error occurs, just don't set
- * <b>a</b>. Return 0.
+ * *<b>a</b>. If an internal error occurs, return -1. On success, or if
+ * the key is not recognized, return 0. Do not set <b>a</b> if the key is
+ * not recognized.
*/
typedef int (*getinfo_helper_t)(control_connection_t *,
const char *q, char **a);