]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a warning when building with --disable-curve25519
authorNick Mathewson <nickm@torproject.org>
Mon, 4 Feb 2013 16:34:23 +0000 (11:34 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 4 Feb 2013 16:34:23 +0000 (11:34 -0500)
It appears that the code for 7291 gave an unused-value warning when
built with --disable-curve25519.

src/or/onion.c

index b9f5aa6c7d1a00b9dca022534f02a290344712fb..d4a65022fc7afa0b0a61c34b5978ffbcb1dcf431 100644 (file)
@@ -82,6 +82,8 @@ have_room_for_onionskin(uint16_t type)
   if (type == ONION_HANDSHAKE_TYPE_TAP &&
       tap_usec / 1000 > (uint64_t)options->MaxOnionQueueDelay * 2 / 3)
     return 0;
+#else
+  (void) type;
 #endif
 
   return 1;