]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix some compilation warnings
authorNick Mathewson <nickm@torproject.org>
Mon, 18 May 2015 19:57:21 +0000 (15:57 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 18 May 2015 19:57:21 +0000 (15:57 -0400)
src/or/control.c
src/or/rendclient.h
src/or/rendcommon.h
src/test/test_hs.c

index de24294efcef1fb684cbcbb2ff79850604ff5c21..4eeb897afac78c43787203ef180c8b800b76b7eb 100644 (file)
@@ -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");
index 639ec1eff45a8de391a42004c4f8ec3f11b708d7..6118924e1d169450c60a7d1bdbbe0db49d0a18fc 100644 (file)
@@ -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
 
index aacc7511086cb9fea28892643e1991d181361193..0ed7adc71042c2fadad8a4c9426313ebcb40333a 100644 (file)
@@ -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,
index a166f2c2c1e038ca9512b070cb6243d1e0c72e4d..dd49cd3e35f301a4c878e93c40598f145982ac5e 100644 (file)
@@ -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));