File phreebird-formats.patch of Package phreebird

--- phreebird_suite_1.02.orig/phreebird.c	2011-04-06 14:32:23.000000000 +0200
+++ phreebird_suite_1.02/phreebird.c	2011-04-06 14:39:43.000000000 +0200
@@ -406,7 +406,7 @@
 	unsigned int l = sizeof(struct sockaddr);
 	len = recvfrom(fd, buf, 2048, 0, (struct sockaddr*)&cAddr, &l);
 
-	if(debug) { fprintf(stderr, "Received %u bytes from %s\n", len, inet_ntoa(cAddr.sin_addr));}
+	if(debug) { fprintf(stderr, "Received %zu bytes from %s\n", len, inet_ntoa(cAddr.sin_addr));}
 
 	store_cache = calloc(sizeof(struct request_cache_struct), 1); //ALLOC1
 	if(store_cache == NULL) { pb_abort("couldn't allocate request_cache\n"); }
@@ -1175,7 +1175,7 @@
 	if(status != LDNS_STATUS_OK) { pb_abort("couldn't convert list 2 buffer\n"); }
 
 	signatures = ght_get(rrsig_cache, sigtext->_position, sigtext->_data);
-	if(debug) fprintf(stderr, "We found: %x\n", signatures);
+	if(debug) fprintf(stderr, "We found: %p\n", signatures);
 	if(signatures == NULL){
 		if(debug) fprintf(stderr, "generating sigs\n");
 
@@ -1197,7 +1197,7 @@
 			rr = signatures->_rrs[i];
 		}
 		if(signatures) {
-			if(debug) fprintf(stderr, "We are writing: %x\n", signatures);
+			if(debug) fprintf(stderr, "We are writing: %p\n", signatures);
 			ght_insert(rrsig_cache, signatures, sigtext->_position, sigtext->_data);
 			}
 		}
openSUSE Build Service is sponsored by