DragonFly BSD
DragonFly submit List (threaded) for 2005-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[patch] killall warns cleanup


From: Peter Schuller <peter.schuller@xxxxxxxxxxxx>
Date: Fri, 13 May 2005 23:24:27 +0200

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

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@xxxxxxxxxxxx>'
Key retrieval: Send an E-Mail to getpgpkey@xxxxxxxxx
E-Mail: peter.schuller@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);


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]