diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-04-21 23:47:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-04-21 23:47:39 +0000 |
commit | 882e83ccf31fca22178b290a6753a605bb52044c (patch) | |
tree | e2e6ec6ef7e162fd03a03e5c71bc96ce90d1c105 /sbin/quotacheck | |
parent | 67d88b0a9910a68bb666b448d2dac29cb4d3d8c2 (diff) |
sync to netbsd 960418
Diffstat (limited to 'sbin/quotacheck')
-rw-r--r-- | sbin/quotacheck/Makefile | 4 | ||||
-rw-r--r-- | sbin/quotacheck/quotacheck.c | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/sbin/quotacheck/Makefile b/sbin/quotacheck/Makefile index 6a11131b2bd..dc2b361ca6f 100644 --- a/sbin/quotacheck/Makefile +++ b/sbin/quotacheck/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.5 1995/03/18 14:59:19 cgd Exp $ +# $NetBSD: Makefile,v 1.6 1996/04/05 04:17:57 cgd Exp $ # @(#)Makefile 8.1 (Berkeley) 6/5/93 PROG= quotacheck SRCS= quotacheck.c preen.c MAN= quotacheck.8 -.PATH: ${.CURDIR}/../fsck +.PATH: ${.CURDIR}/../fsck_ffs .include <bsd.prog.mk> diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c index 69cf395dfe8..3c1e3fca961 100644 --- a/sbin/quotacheck/quotacheck.c +++ b/sbin/quotacheck/quotacheck.c @@ -1,4 +1,4 @@ -/* $NetBSD: quotacheck.c,v 1.10.2.1 1995/11/01 00:32:51 jtc Exp $ */ +/* $NetBSD: quotacheck.c,v 1.12 1996/03/30 22:34:25 mark Exp $ */ /* * Copyright (c) 1980, 1990, 1993 @@ -46,7 +46,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)quotacheck.c 8.3 (Berkeley) 1/29/94"; #else -static char rcsid[] = "$NetBSD: quotacheck.c,v 1.10.2.1 1995/11/01 00:32:51 jtc Exp $"; +static char rcsid[] = "$NetBSD: quotacheck.c,v 1.12 1996/03/30 22:34:25 mark Exp $"; #endif #endif /* not lint */ @@ -138,10 +138,11 @@ main(argc, argv) struct quotaname *auxdata; int i, argnum, maxrun, errs; long done = 0; - char ch, *name; + char *name; + int ch; errs = maxrun = 0; - while ((ch = getopt(argc, argv, "aguvl:")) != EOF) { + while ((ch = getopt(argc, argv, "aguvl:")) != -1) { switch(ch) { case 'a': aflag++; |