Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
fsdbutil.c won't compile
Hi,
just got this warnings while build.sh ... distribution on
amd64 w/ source from Dec 29 16:33 MET:
cc1: warnings being treated as errors
/u/NetBSD/src/sbin/fsdb/fsdbutil.c: In function 'printstat':
/u/NetBSD/src/sbin/fsdb/fsdbutil.c:116: warning: format '%llu' expects type
'long long unsigned int', but argument 2 has type 'int'
/u/NetBSD/src/sbin/fsdb/fsdbutil.c:116: warning: format '%llu' expects type
'long long unsigned int', but argument 3 has type 'int'
/u/NetBSD/src/sbin/fsdb/fsdbutil.c:116: warning: format '%llu' expects type
'long long unsigned int', but argument 2 has type 'int'
/u/NetBSD/src/sbin/fsdb/fsdbutil.c:116: warning: format '%llu' expects type
'long long unsigned int', but argument 3 has type 'int'
Applying the following patch helps:
>-639: cvs diff -u sbin/fsdb/fsdbutil.c
Index: sbin/fsdb/fsdbutil.c
===================================================================
RCS file: /cvsroot/src/sbin/fsdb/fsdbutil.c,v
retrieving revision 1.20
diff -u -r1.20 fsdbutil.c
--- sbin/fsdb/fsdbutil.c 28 Dec 2008 20:23:53 -0000 1.20
+++ sbin/fsdb/fsdbutil.c 29 Dec 2008 15:59:10 -0000
@@ -113,7 +113,9 @@
puts("regular file");
break;
case IFBLK:
- printf("block special (%llu,%llu)", major(rdev), minor(rdev));
+ printf("block special (%llu,%llu)",
+ (unsigned long long)major(rdev),
+ (unsigned long long)minor(rdev));
break;
case IFCHR:
printf("character special (%llu,%llu)",
Kurt
Home |
Main Index |
Thread Index |
Old Index