summaryrefslogtreecommitdiffstats
path: root/libexec/lfs_cleanerd
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
committerimp <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
commit3125d931c2865b48cb5780a22e277701803212c6 (patch)
tree5fe9e887ce5fdacb7324ecf172d3dc7bbd561532 /libexec/lfs_cleanerd
parent054f35c2222ef251bc2877814cf7bf5ff6038166 (diff)
downloadFreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.zip
FreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.tar.gz
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'libexec/lfs_cleanerd')
-rw-r--r--libexec/lfs_cleanerd/cleanerd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/lfs_cleanerd/cleanerd.c b/libexec/lfs_cleanerd/cleanerd.c
index 44bd702..f8877a8 100644
--- a/libexec/lfs_cleanerd/cleanerd.c
+++ b/libexec/lfs_cleanerd/cleanerd.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: cleanerd.c,v 1.6 1997/02/22 14:21:44 peter Exp $
*/
#ifndef lint
@@ -160,7 +160,7 @@ main(argc, argv)
extern int optind;
cmd_err = nodaemon = 0;
- while ((opt = getopt(argc, argv, "smd")) != EOF) {
+ while ((opt = getopt(argc, argv, "smd")) != -1) {
switch (opt) {
case 's': /* small writes */
do_small = 1;
OpenPOWER on IntegriCloud