aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-12 20:17:45 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-12 20:17:45 +0000
commit7cc126e8a99a6f73888bcc3add84cc74d1fd273d (patch)
treeeacc861ec8ec4bc8364efe7043d495e97dc9efd6 /src/or/routerparse.c
parentf7404f6bb9db5ab292047f3129d4d19d53f72ed3 (diff)
downloadtor-7cc126e8a99a6f73888bcc3add84cc74d1fd273d.tar
tor-7cc126e8a99a6f73888bcc3add84cc74d1fd273d.tar.gz
Appease overzealous gcc
svn:r2454
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index be5b899a5..2f63139d3 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -115,7 +115,7 @@ static struct {
{ "network-status", K_NETWORK_STATUS, NO_ARGS, NO_OBJ, DIR_ONLY },
{ "uptime", K_UPTIME, ARGS, NO_OBJ, RTR_ONLY },
{ "dir-signing-key", K_DIR_SIGNING_KEY, ARGS, OBJ_OK, DIR_ONLY },
- { NULL, -1 }
+ { NULL, -1, NO_ARGS, NO_OBJ, ANY }
};
/* static function prototypes */
@@ -1003,7 +1003,7 @@ router_parse_exit_policy(directory_token_t *tok) {
struct exit_policy_t*newe;
struct in_addr in;
char *arg, *address, *mask, *port, *endptr;
- int bits, ok;
+ int bits;
tor_assert(tok->tp == K_REJECT || tok->tp == K_ACCEPT);