INN commit: trunk (nnrpd/tls.c storage/timecaf/caf.c)

INN Commit Russ_Allbery at isc.org
Thu Jan 29 18:50:30 UTC 2009


    Date: Thursday, January 29, 2009 @ 10:50:30
  Author: iulius
Revision: 8301

Add two casts to silent gcc warnings during the buid.

Modified:
  trunk/nnrpd/tls.c
  trunk/storage/timecaf/caf.c

-----------------------+
 nnrpd/tls.c           |    2 +-
 storage/timecaf/caf.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Modified: nnrpd/tls.c
===================================================================
--- nnrpd/tls.c	2009-01-29 18:48:53 UTC (rev 8300)
+++ nnrpd/tls.c	2009-01-29 18:50:30 UTC (rev 8301)
@@ -651,7 +651,7 @@
 	do_dump = 0;
 
     tls_protocol = SSL_get_version(tls_conn);
-    cipher = SSL_get_current_cipher(tls_conn);
+    cipher = (SSL_CIPHER *) SSL_get_current_cipher(tls_conn);
 
     tls_cipher_name = SSL_CIPHER_get_name(cipher);
     tls_cipher_usebits = SSL_CIPHER_get_bits(cipher,

Modified: storage/timecaf/caf.c
===================================================================
--- storage/timecaf/caf.c	2009-01-29 18:48:53 UTC (rev 8300)
+++ storage/timecaf/caf.c	2009-01-29 18:50:30 UTC (rev 8301)
@@ -1605,7 +1605,7 @@
 
 	num_diskblocks_needed = RoundIt((head.High - head.Low + 1)*sizeof(CAFTOCENT)) 
 	    + RoundIt(datasize - head.Free) + RoundIt(head.BlockSize);
-	if (num_diskblocks_needed > fsinfo.STATAVAIL) {
+	if (num_diskblocks_needed > (unsigned long) fsinfo.STATAVAIL) {
 	    if (verbose) {
 		printf("CANNOT clean %s: needs %lu blocks, only %lu avail.\n",
 		       path, num_diskblocks_needed,




More information about the inn-committers mailing list