diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-22 07:34:04 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-22 07:34:04 +0000 |
commit | b82dfdd4a3ad4a9a6a878bd14ee79fdf1a80ce56 (patch) | |
tree | 517850e4cfd9ae8f1452da69001dcccb77fe1946 /src | |
parent | 06ffee3b67ff629d9580c0143f0c7b3c13be8d9e (diff) | |
download | tor-b82dfdd4a3ad4a9a6a878bd14ee79fdf1a80ce56.tar.gz tor-b82dfdd4a3ad4a9a6a878bd14ee79fdf1a80ce56.zip |
Make some more verbose gcc warnings go away.
svn:r6680
Diffstat (limited to 'src')
-rw-r--r-- | src/or/dirserv.c | 2 | ||||
-rw-r--r-- | src/or/test.c | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index b311bc6c16..ad81692d2e 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1808,7 +1808,7 @@ connection_dirserv_add_servers_to_outbuf(connection_t *conn) while (smartlist_len(conn->fingerprint_stack) && buf_datalen(conn->outbuf) < DIRSERV_BUFFER_MIN) { - char *body; + const char *body; char *fp = smartlist_pop_last(conn->fingerprint_stack); signed_descriptor_t *sd = NULL; if (by_fp) { diff --git a/src/or/test.c b/src/or/test.c index 732456115d..bb13e25176 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -1002,15 +1002,15 @@ test_gzip(void) len1 = 1024; ccp2 = "ABCDEFGHIJABCDEFGHIJ"; len2 = 21; - test_eq(tor_zlib_process(state, &cp1, &len1, &ccp2, &len2, 0), - TOR_ZLIB_OK); + test_assert(tor_zlib_process(state, &cp1, &len1, &ccp2, &len2, 0) + == TOR_ZLIB_OK); test_eq(len2, 0); /* Make sure we compressed it all. */ test_assert(cp1 > buf1); len2 = 0; cp2 = cp1; - test_eq(tor_zlib_process(state, &cp1, &len1, &ccp2, &len2, 1), - TOR_ZLIB_DONE); + test_assert(tor_zlib_process(state, &cp1, &len1, &ccp2, &len2, 1) + == TOR_ZLIB_DONE); test_eq(len2, 0); test_assert(cp1 > cp2); /* Make sure we really added something. */ @@ -1643,6 +1643,8 @@ main(int c, char**v) { or_options_t *options = options_new(); char *errmsg = NULL; + (void) c; + (void) v; options->command = CMD_RUN_UNITTESTS; network_init(); setup_directory(); |