diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-08-31 12:03:03 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-08-31 12:03:03 +0000 |
commit | 3b6e24233b64e2c99d17314a28d191d6ac124c58 (patch) | |
tree | 4661ca7aa62264da407b2bed4d6e7345f631a653 /usr.sbin/quot | |
parent | e516cf620838723986c214433b7dfe0088c243dc (diff) |
assorted warning fixes; ok millert@
Diffstat (limited to 'usr.sbin/quot')
-rw-r--r-- | usr.sbin/quot/quot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/quot/quot.c b/usr.sbin/quot/quot.c index 896d8601634..74c5b902775 100644 --- a/usr.sbin/quot/quot.c +++ b/usr.sbin/quot/quot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: quot.c,v 1.28 2015/11/12 22:33:07 deraadt Exp $ */ +/* $OpenBSD: quot.c,v 1.29 2017/08/31 12:03:02 otto Exp $ */ /* * Copyright (C) 1991, 1994 Wolfgang Solfrank. @@ -469,7 +469,7 @@ donames(int fd, struct fs *super, char *name) ungetc(c, stdin); inode1 = -1; while (scanf("%llu", &inode) == 1) { - if (inode < 0 || inode > maxino) { + if (inode > maxino) { #ifndef COMPAT fprintf(stderr, "invalid inode %llu\n", (unsigned long long)inode); |