[patch] killall warns cleanup

Peter Schuller peter.schuller at infidyne.com
Fri May 13 14:26:31 PDT 2005


* warns=6
* %zu -> %u since %z is not recognized by gcc

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller at xxxxxxxxxxxx>'
Key retrieval: Send an E-Mail to getpgpkey at xxxxxxxxx
E-Mail: peter.schuller at xxxxxxxxxxxx Web: http://www.scode.org

--- usr.bin/killall/Makefile.orig	2005-05-13 14:12:38.000000000 +0000
+++ usr.bin/killall/Makefile	2005-05-13 14:12:48.000000000 +0000
@@ -2,5 +2,6 @@
 # $DragonFly: src/usr.bin/killall/Makefile,v 1.2 2003/06/17 04:29:27 dillon Exp $
 
 PROG=	killall
+WARNS?= 6
 
 .include <bsd.prog.mk>
--- usr.bin/killall/killall.c.orig	2005-05-13 14:12:41.000000000 +0000
+++ usr.bin/killall/killall.c	2005-05-13 14:14:47.000000000 +0000
@@ -278,7 +278,7 @@
 	if (st == -1)
 		err(1, "could not sysctl(KERN_PROC)");
 	if (size % sizeof(struct kinfo_proc) != 0) {
-		fprintf(stderr, "proc size mismatch (%zu total, %zu chunks)\n",
+		fprintf(stderr, "proc size mismatch (%u total, %u chunks)\n",
 			size, sizeof(struct kinfo_proc));
 		fprintf(stderr, "userland out of sync with kernel, recompile libkvm etc\n");
 		exit(1);




More information about the Submit mailing list