WARNS6 cleanup. Add a length modifier to a printf format argument since
authorPeter Avalos <pavalos@dragonflybsd.org>
Tue, 31 Oct 2006 20:22:22 +0000 (20:22 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Tue, 31 Oct 2006 20:22:22 +0000 (20:22 +0000)
inode numbers are 64 bits.

sbin/fsirand/Makefile
sbin/fsirand/fsirand.c

index 5cae081..ffc6d88 100644 (file)
@@ -1,9 +1,8 @@
 #      $OpenBSD: Makefile,v 1.1 1997/01/26 02:23:20 millert Exp $
 # $FreeBSD: src/sbin/fsirand/Makefile,v 1.2.10.1 2001/04/25 10:58:19 ru Exp $
-# $DragonFly: src/sbin/fsirand/Makefile,v 1.4 2006/10/17 00:55:41 pavalos Exp $
+# $DragonFly: src/sbin/fsirand/Makefile,v 1.5 2006/10/31 20:22:22 pavalos Exp $
 
 PROG=  fsirand
-WARNS?=        1
 MAN=   fsirand.8
 DPADD= ${LIBUTIL}
 LDADD= -lutil
index 3700169..937f45a 100644 (file)
@@ -30,7 +30,7 @@
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
  * $FreeBSD: src/sbin/fsirand/fsirand.c,v 1.7.2.1 2000/07/01 06:23:36 ps Exp $
- * $DragonFly: src/sbin/fsirand/fsirand.c,v 1.8 2006/04/03 01:58:49 dillon Exp $
+ * $DragonFly: src/sbin/fsirand/fsirand.c,v 1.9 2006/10/31 20:22:22 pavalos Exp $
  */
 
 #include <sys/disklabel.h>
@@ -249,7 +249,7 @@ fsirand(char *device)
                for (n = 0; n < sblock->fs_ipg; n++, inumber++) {
                        if (inumber >= ROOTINO) {
                                if (printonly)
-                                       printf("ino %d gen %x\n", inumber,
+                                       printf("ino %lld gen %x\n", inumber,
                                            inodebuf[n].di_gen);
                                else
                                        inodebuf[n].di_gen = random();