summaryrefslogtreecommitdiff
path: root/src/or/policies.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-12-08 04:39:13 +0000
committerNick Mathewson <nickm@torproject.org>2006-12-08 04:39:13 +0000
commitcf04e1e6e75373ab28f7f27413bf62ad71881fb3 (patch)
tree66092a5d56f00e53dc561a7beaa396ac199b2335 /src/or/policies.c
parent1567e13dc853bcba4b75789d25a318ada9f81fab (diff)
downloadtor-cf04e1e6e75373ab28f7f27413bf62ad71881fb3.tar.gz
tor-cf04e1e6e75373ab28f7f27413bf62ad71881fb3.zip
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/policies.c')
-rw-r--r--src/or/policies.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 3c3c17d1a6..d318b5c9b8 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -658,13 +658,12 @@ policy_is_reject_star(addr_policy_t *p)
}
int
-policies_getinfo_helper(const char *question, char **answer)
+getinfo_helper_policies(control_connection_t *conn,
+ const char *question, char **answer)
{
+ (void) conn;
if (!strcmp(question, "exit-policy/default")) {
*answer = tor_strdup(DEFAULT_EXIT_POLICY);
-// } else if (!strcmp(question, "exit-policy/prepend")) {
- } else {
- *answer = NULL;
}
return 0;
}