[tor-commits] [tor/master] Make a return value explicitly ignored.

nickm at torproject.org nickm at torproject.org
Thu Apr 23 17:05:23 UTC 2015


commit b64eb6c47c24c2a9eb0c53d5ac86f1c097613a59
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Apr 23 13:04:37 2015 -0400

    Make a return value explicitly ignored.
    
    This might make coverity happy
---
 src/or/rendclient.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 0854d93..13781c2 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -1229,7 +1229,8 @@ void
 rend_client_note_connection_attempt_ended(const char *onion_address)
 {
   rend_cache_entry_t *cache_entry = NULL;
-  rend_cache_lookup_entry(onion_address, -1, &cache_entry);
+  /* Ignore return value; we find an entry, or we don't. */
+  (void) rend_cache_lookup_entry(onion_address, -1, &cache_entry);
 
   log_info(LD_REND, "Connection attempt for %s has ended; "
            "cleaning up temporary state.",



More information about the tor-commits mailing list