Subject: bin/12392: basesrc/usr.bin/audio/play/play.c has int/size_t clash
To: None <gnats-bugs@gnats.netbsd.org>
From: None <windsor@warthog.com>
List: netbsd-bugs
Date: 03/12/2001 08:15:39
>Number:         12392
>Category:       bin
>Synopsis:       basesrc/usr.bin/audio/play/play.c has int/size_t clash
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 12 09:32:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Rob Windsor
>Release:        1.5.1_ALPHA from today.
>Organization:
Nose Pickers Anonymous
>Environment:
play.c,v 1.17.4.1 2001/03/11 21:30:28 he
	
System: NetBSD pioneer 1.5.1_ALPHA NetBSD 1.5.1_ALPHA (SUN4M) #27: Thu Mar 8 16:58:47 CST 2001 windsor@pioneer:/usr/src/sys/arch/sparc/compile/SUN4M sparc


>Description:

cc -O2 -msupersparc -g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror   -I/usr/src/usr.bin/audio/play/../common -c play.c
cc1: warnings being treated as errors
play.c: In function `main':
play.c:243: warning: unsigned int format, size_t arg (arg 2)

>How-To-Repeat:
	compile 1-5-branch
>Fix:

--- play.c.FCS	Mon Mar 12 07:45:47 2001
+++ play.c.new	Mon Mar 12 07:46:58 2001
@@ -240,7 +240,7 @@
 			filesize -= hdrlen;
 			addr = (char *)addr + hdrlen;
 			if (filesize < datasize || datasize == 0) {
-				warn("bogus datasize:%u", datasize);
+				warn("bogus datasize:%lu", (unsigned long)datasize);
 				datasize = filesize;
 			}
 
>Release-Note:
>Audit-Trail:
>Unformatted: