Date: Fri, 10 Jun 2011 20:55:06 +0000 From: gk@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r223085 - soc2011/gk/ino64-head/usr.sbin/quot Message-ID: <20110610205506.B6228106566B@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110610205506.B6228106566B>