socsvn commit: r223085 - soc2011/gk/ino64-head/usr.sbin/quot
gk at FreeBSD.org
gk at FreeBSD.org
Fri Jun 10 20:55:07 UTC 2011
Author: gk
Date: Fri Jun 10 20:55:06 2011
New Revision: 223085
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=223085
Log:
usr.sbin/quot: Change inode type to uintmax_t to keep scanf() happy
Modified:
soc2011/gk/ino64-head/usr.sbin/quot/quot.c
Modified: soc2011/gk/ino64-head/usr.sbin/quot/quot.c
==============================================================================
--- soc2011/gk/ino64-head/usr.sbin/quot/quot.c Fri Jun 10 20:54:56 2011 (r223084)
+++ soc2011/gk/ino64-head/usr.sbin/quot/quot.c Fri Jun 10 20:55:06 2011 (r223085)
@@ -484,7 +484,7 @@
donames(int fd, struct fs *super, char *name)
{
int c;
- ino_t inode;
+ uintmax_t inode;
ino_t maxino;
union dinode *dp;
@@ -495,7 +495,7 @@
ungetc(c,stdin);
while (scanf("%ju", &inode) == 1) {
if (inode > maxino) {
- warnx("illegal inode %ju", (uintmax_t)inode);
+ warnx("illegal inode %ju", inode);
return;
}
errno = 0;
More information about the svn-soc-all
mailing list