diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
commit | 552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch) | |
tree | 219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /libexec/lfs_cleanerd | |
parent | bf6413046b73005ecca3f5352c8711d00a6d00b9 (diff) |
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'libexec/lfs_cleanerd')
-rw-r--r-- | libexec/lfs_cleanerd/cleanerd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/lfs_cleanerd/cleanerd.c b/libexec/lfs_cleanerd/cleanerd.c index 66fdb3a5c52..d94ed8d899c 100644 --- a/libexec/lfs_cleanerd/cleanerd.c +++ b/libexec/lfs_cleanerd/cleanerd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cleanerd.c,v 1.2 1996/07/01 11:04:56 downsj Exp $ */ +/* $OpenBSD: cleanerd.c,v 1.3 1997/01/15 23:41:00 millert Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "@(#)cleanerd.c 8.5 (Berkeley) 6/10/95";*/ -static char rcsid[] = "$OpenBSD: cleanerd.c,v 1.2 1996/07/01 11:04:56 downsj Exp $"; +static char rcsid[] = "$OpenBSD: cleanerd.c,v 1.3 1997/01/15 23:41:00 millert Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -169,7 +169,7 @@ main(argc, argv) cmd_err = nodaemon = 0; clean_opts = 0; segs_per_clean = 1; - while ((opt = getopt(argc, argv, "bdmn:r:s")) != EOF) { + while ((opt = getopt(argc, argv, "bdmn:r:s")) != -1) { switch (opt) { case 'b': /* * Use live bytes to determine |