diff options
author | 2013-04-23 17:29:14 +0000 | |
---|---|---|
committer | 2013-04-23 17:29:14 +0000 | |
commit | 1e74350ab250c59c7519499e33637172e2e02b10 (patch) | |
tree | ec0e883c9fbf5d150b2555e48497af92fc0d8c17 | |
parent | Include udivdi3/umoddi3 when compiling the amd64/i386 boot blocks - they (diff) | |
download | wireguard-openbsd-1e74350ab250c59c7519499e33637172e2e02b10.tar.xz wireguard-openbsd-1e74350ab250c59c7519499e33637172e2e02b10.zip |
handle big ino_t
ok otto
-rw-r--r-- | sbin/clri/clri.c | 4 | ||||
-rw-r--r-- | sbin/fsirand/fsirand.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sbin/clri/clri.c b/sbin/clri/clri.c index 77237015ffb..22bd20a5aab 100644 --- a/sbin/clri/clri.c +++ b/sbin/clri/clri.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clri.c,v 1.12 2009/10/27 23:59:32 deraadt Exp $ */ +/* $OpenBSD: clri.c,v 1.13 2013/04/23 17:29:26 deraadt Exp $ */ /* $NetBSD: clri.c,v 1.19 2005/01/20 15:50:47 xtraeme Exp $ */ /* @@ -113,7 +113,7 @@ main(int argc, char *argv[]) while (*++argv) { /* get the inode number. */ inonum = atoi(*argv); - (void)printf("clearing %d\n", inonum); + (void)printf("clearing %llu\n", (unsigned long long)inonum); /* read in the appropriate block. */ offset = ino_to_fsba(sbp, inonum); /* inode to fs blk */ diff --git a/sbin/fsirand/fsirand.c b/sbin/fsirand/fsirand.c index 8ad82a658e4..262a6ec5960 100644 --- a/sbin/fsirand/fsirand.c +++ b/sbin/fsirand/fsirand.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fsirand.c,v 1.27 2013/04/02 04:16:39 deraadt Exp $ */ +/* $OpenBSD: fsirand.c,v 1.28 2013/04/23 17:29:14 deraadt Exp $ */ /* * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> @@ -279,7 +279,8 @@ fsirand(char *device) dp2 = &((struct ufs2_dinode *)inodebuf)[n]; if (inumber >= ROOTINO) { if (printonly) - (void)printf("ino %d gen %x\n", inumber, + (void)printf("ino %llu gen %x\n", + (unsigned long long)inumber, sblock->fs_magic == FS_UFS1_MAGIC ? dp1->di_gen : dp2->di_gen); else if (sblock->fs_magic == FS_UFS1_MAGIC) |