aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-05-18 15:57:21 -0400
committerNick Mathewson <nickm@torproject.org>2015-05-18 15:57:21 -0400
commitd5e4a6343694574cebc9f9bd7ea83a168bdad3aa (patch)
tree7c574d67801a8b18290d1c2e251c16adcc365937
parent2308f917f99384640c5b0d1ddc9f2a3dffc68e5a (diff)
downloadtor-d5e4a6343694574cebc9f9bd7ea83a168bdad3aa.tar.gz
tor-d5e4a6343694574cebc9f9bd7ea83a168bdad3aa.zip
Fix some compilation warnings
-rw-r--r--src/or/control.c2
-rw-r--r--src/or/rendclient.h1
-rw-r--r--src/or/rendcommon.h2
-rw-r--r--src/test/test_hs.c2
4 files changed, 5 insertions, 2 deletions
diff --git a/src/or/control.c b/src/or/control.c
index de24294efc..4eeb897afa 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -2216,6 +2216,8 @@ getinfo_helper_liveness(control_connection_t *control_conn,
const char *question, char **answer,
const char **errmsg)
{
+ (void)control_conn;
+ (void)errmsg;
if (strcmp(question, "network-liveness") == 0) {
if (get_cached_network_liveness()) {
*answer = tor_strdup("up");
diff --git a/src/or/rendclient.h b/src/or/rendclient.h
index 639ec1eff4..6118924e1d 100644
--- a/src/or/rendclient.h
+++ b/src/or/rendclient.h
@@ -52,7 +52,6 @@ int rend_parse_service_authorization(const or_options_t *options,
rend_service_authorization_t *rend_client_lookup_service_authorization(
const char *onion_address);
void rend_service_authorization_free_all(void);
-rend_data_t *rend_data_dup(const rend_data_t *request);
#endif
diff --git a/src/or/rendcommon.h b/src/or/rendcommon.h
index aacc751108..0ed7adc710 100644
--- a/src/or/rendcommon.h
+++ b/src/or/rendcommon.h
@@ -73,7 +73,7 @@ void rend_get_descriptor_id_bytes(char *descriptor_id_out,
const char *secret_id_part);
size_t rend_cache_get_total_allocation(void);
-rend_data_t * rend_data_dup(const rend_data_t *data);
+rend_data_t *rend_data_dup(const rend_data_t *data);
rend_data_t *rend_data_client_create(const char *onion_address,
const char *desc_id,
const char *cookie,
diff --git a/src/test/test_hs.c b/src/test/test_hs.c
index a166f2c2c1..dd49cd3e35 100644
--- a/src/test/test_hs.c
+++ b/src/test/test_hs.c
@@ -310,6 +310,8 @@ test_hs_rend_data(void *arg)
char client_cookie[REND_DESC_COOKIE_LEN];
time_t now = time(NULL);
+ (void)arg;
+
base32_decode(desc_id, sizeof(desc_id), STR_DESC_ID_BASE32,
REND_DESC_ID_V2_LEN_BASE32);
memset(client_cookie, 'e', sizeof(client_cookie));