[Midnightbsd-cvs] src [10355] trunk/usr.sbin/quot/quot.c: fixup

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Jun 3 18:58:01 EDT 2018


Revision: 10355
          http://svnweb.midnightbsd.org/src/?rev=10355
Author:   laffer1
Date:     2018-06-03 18:58:00 -0400 (Sun, 03 Jun 2018)
Log Message:
-----------
fixup

Modified Paths:
--------------
    trunk/usr.sbin/quot/quot.c

Modified: trunk/usr.sbin/quot/quot.c
===================================================================
--- trunk/usr.sbin/quot/quot.c	2018-06-03 22:57:23 UTC (rev 10354)
+++ trunk/usr.sbin/quot/quot.c	2018-06-03 22:58:00 UTC (rev 10355)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 /*
  * Copyright (C) 1991, 1994 Wolfgang Solfrank.
  * Copyright (C) 1991, 1994 TooLs GmbH.
@@ -30,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__MBSDID("$MidnightBSD$");
+__FBSDID("$FreeBSD: stable/10/usr.sbin/quot/quot.c 241015 2012-09-27 23:31:19Z mdf $");
 
 #include <sys/param.h>
 #include <sys/stdint.h>
@@ -484,8 +485,8 @@
 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 +494,9 @@
 	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;



More information about the Midnightbsd-cvs mailing list