]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix comments for getinfo_helper_t
authorSebastian Hahn <sebastian@torproject.org>
Wed, 27 Jan 2010 21:11:42 +0000 (22:11 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Wed, 27 Jan 2010 21:12:43 +0000 (22:12 +0100)
rieo pointed out something isn't right here

src/or/control.c

index 13a5f46b114994a3983b3a0b8bc952f1fd3939e3..c08d6a2440e6de29b868d81193c8817294c4f6db 100644 (file)
@@ -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);