diff options
author | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:19 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:19 +0000 |
commit | a782f0b8bd315c02033a4fb363e550bd467101c7 (patch) | |
tree | 8a4bdcc7b13b351076583f8136d9f3cd310718b6 /usr.sbin/quot | |
parent | 8ce8b3ae17aae9323001285d2530d9b793f3c36d (diff) | |
download | FreeBSD-src-a782f0b8bd315c02033a4fb363e550bd467101c7.zip FreeBSD-src-a782f0b8bd315c02033a4fb363e550bd467101c7.tar.gz |
Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Diffstat (limited to 'usr.sbin/quot')
-rw-r--r-- | usr.sbin/quot/quot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c index 979eef4..ac90da6 100644 --- a/usr.sbin/quot/quot.c +++ b/usr.sbin/quot/quot.c @@ -484,8 +484,8 @@ static void donames(int fd, struct fs *super, char *name) { int c; - ino_t inode; ino_t maxino; + uintmax_t inode; union dinode *dp; maxino = super->fs_ncg * super->fs_ipg - 1; @@ -493,9 +493,9 @@ donames(int fd, struct fs *super, char *name) while ((c = getchar()) != EOF && (c < '0' || c > '9')) while ((c = getchar()) != EOF && c != '\n'); ungetc(c,stdin); - while (scanf("%u",&inode) == 1) { + while (scanf("%ju", &inode) == 1) { if (inode > maxino) { - warnx("illegal inode %d",inode); + warnx("illegal inode %ju", inode); return; } errno = 0; |