summaryrefslogtreecommitdiff
path: root/usr.sbin/quotaon/quotaon.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-21 23:47:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-21 23:47:39 +0000
commit882e83ccf31fca22178b290a6753a605bb52044c (patch)
treee2e6ec6ef7e162fd03a03e5c71bc96ce90d1c105 /usr.sbin/quotaon/quotaon.c
parent67d88b0a9910a68bb666b448d2dac29cb4d3d8c2 (diff)
sync to netbsd 960418
Diffstat (limited to 'usr.sbin/quotaon/quotaon.c')
-rw-r--r--usr.sbin/quotaon/quotaon.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c
index c3267a989a9..bb0fdc0aeb0 100644
--- a/usr.sbin/quotaon/quotaon.c
+++ b/usr.sbin/quotaon/quotaon.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)quotaon.c 8.1 (Berkeley) 6/6/93";*/
-static char *rcsid = "$Id: quotaon.c,v 1.4 1996/01/07 05:28:05 deraadt Exp $";
+static char *rcsid = "$Id: quotaon.c,v 1.5 1996/04/21 23:41:36 deraadt Exp $";
#endif /* not lint */
/*
@@ -69,11 +69,12 @@ main(argc, argv)
char **argv;
{
register struct fstab *fs;
- char ch, *qfnp, *whoami, *rindex();
+ char *qfnp, *whoami, *rindex();
long argnum, done = 0;
int i, offmode = 0, errs = 0;
extern char *optarg;
extern int optind;
+ int ch;
whoami = rindex(*argv, '/') + 1;
if (whoami == (char *)1)
@@ -85,7 +86,7 @@ main(argc, argv)
whoami);
exit(1);
}
- while ((ch = getopt(argc, argv, "avug")) != EOF) {
+ while ((ch = getopt(argc, argv, "avug")) != -1) {
switch(ch) {
case 'a':
aflag++;