Skip site navigation (1)Skip section navigation (2)
Date:      21 Jul 2001 22:52:58 +0200
From:      Assar Westerlund <assar@freebsd.org>
To:        des@freebsd.org, audit@freebsd.org
Subject:   subf_printf warnings in linprocfs.c:linprocfs_donetdev
Message-ID:  <5lofqeknrp.fsf@assaris.sics.se>

next in thread | raw e-mail | index | archive | help
This gets rid of warnings from gcc's printf.  Comments?

/assar

Index: linprocfs.c
===================================================================
RCS file: /home/ncvs/src/sys/compat/linprocfs/linprocfs.c,v
retrieving revision 1.33
diff -u -w -u -w -r1.33 linprocfs.c
--- linprocfs.c	2001/07/05 17:10:41	1.33
+++ linprocfs.c	2001/07/21 20:51:38
@@ -663,8 +663,8 @@
 		sbuf_printf(sb,
 		    "%8lu %7lu %4lu %4lu %4lu %5lu %10lu %9lu "
 		    "%8lu %7lu %4lu %4lu %4lu %5lu %7lu %10lu\n",
-		    0, 0, 0, 0, 0, 0, 0, 0,
-		    0, 0, 0, 0, 0, 0, 0, 0);
+		    0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL,
+		    0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL);
 	}
 	
 	return (0);

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5lofqeknrp.fsf>