[or-cvs] r8652: Backport trivial fix for "harmless" warnings. (Noticed by Ph (tor/branches/tor-0_1_1-patches/src/common)

nickm at seul.org nickm at seul.org
Sun Oct 8 20:01:19 UTC 2006


Author: nickm
Date: 2006-10-08 16:01:18 -0400 (Sun, 08 Oct 2006)
New Revision: 8652

Modified:
   tor/branches/tor-0_1_1-patches/src/common/crypto.c
   tor/branches/tor-0_1_1-patches/src/common/tortls.c
Log:
Backport trivial fix for "harmless" warnings. (Noticed by Phobos on suse 10.1

Modified: tor/branches/tor-0_1_1-patches/src/common/crypto.c
===================================================================
--- tor/branches/tor-0_1_1-patches/src/common/crypto.c	2006-10-08 18:50:52 UTC (rev 8651)
+++ tor/branches/tor-0_1_1-patches/src/common/crypto.c	2006-10-08 20:01:18 UTC (rev 8652)
@@ -499,7 +499,7 @@
   }
 
   BIO_get_mem_ptr(b, &buf);
-  BIO_set_close(b, BIO_NOCLOSE); /* so BIO_free doesn't free buf */
+  (void)BIO_set_close(b, BIO_NOCLOSE); /* so BIO_free doesn't free buf */
   BIO_free(b);
 
   tor_assert(buf->length >= 0);

Modified: tor/branches/tor-0_1_1-patches/src/common/tortls.c
===================================================================
--- tor/branches/tor-0_1_1-patches/src/common/tortls.c	2006-10-08 18:50:52 UTC (rev 8651)
+++ tor/branches/tor-0_1_1-patches/src/common/tortls.c	2006-10-08 20:01:18 UTC (rev 8652)
@@ -717,7 +717,7 @@
   BIO_get_mem_ptr(bio, &buf);
   s1 = tor_strndup(buf->data, buf->length);
 
-  BIO_reset(bio);
+  (void)BIO_reset(bio);
   if (!(ASN1_TIME_print(bio, X509_get_notAfter(cert)))) {
     tls_log_errors(LOG_WARN, "printing certificate lifetime");
     goto end;



More information about the tor-commits mailing list