diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-12-08 04:39:13 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-12-08 04:39:13 +0000 |
commit | cf04e1e6e75373ab28f7f27413bf62ad71881fb3 (patch) | |
tree | 66092a5d56f00e53dc561a7beaa396ac199b2335 /src/or/hibernate.c | |
parent | 1567e13dc853bcba4b75789d25a318ada9f81fab (diff) | |
download | tor-cf04e1e6e75373ab28f7f27413bf62ad71881fb3.tar tor-cf04e1e6e75373ab28f7f27413bf62ad71881fb3.tar.gz |
r11479@Kushana: nickm | 2006-12-07 23:38:54 -0500
Refactor GETINFO into a table-driven dispatch, as suggested by arma. My brain hurts.
svn:r9052
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index f4249d2ef..2063ccdbd 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -928,8 +928,10 @@ consider_hibernation(time_t now) /** DOCDOC */ int -accounting_getinfo_helper(const char *question, char **answer) +getinfo_helper_accounting(control_connection_t *conn, + const char *question, char **answer) { + (void) conn; if (!strcmp(question, "accounting/enabled")) { *answer = tor_strdup(get_options()->AccountingMax ? "1" : "0"); } else if (!strcmp(question, "accounting/hibernating")) { |