[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit b64eb6c47c24c2a9eb0c53d5ac86f1c097613a59
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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.",

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits