ソースを参照

Make a return value explicitly ignored.

This might make coverity happy
Nick Mathewson 9 年 前
コミット
b64eb6c47c
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/or/rendclient.c

+ 2 - 1
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.",