From c9981d258cbc0615b991fad11e7fe30d18e2c04c Mon Sep 17 00:00:00 2001 From: elad Date: Mon, 17 Oct 2005 10:11:46 +0000 Subject: [PATCH] PR/27140: "sleep time" doesn't error out. Apply fix from Dheeraj Reddy. --- bin/sleep/sleep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/sleep/sleep.c b/bin/sleep/sleep.c index 1140dd98d9b2..0990a5de8649 100644 --- a/bin/sleep/sleep.c +++ b/bin/sleep/sleep.c @@ -1,4 +1,4 @@ -/* $NetBSD: sleep.c,v 1.19 2003/08/07 09:05:41 agc Exp $ */ +/* $NetBSD: sleep.c,v 1.20 2005/10/17 10:11:46 elad Exp $ */ /* * Copyright (c) 1988, 1993, 1994 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)sleep.c 8.3 (Berkeley) 4/2/94"; #else -__RCSID("$NetBSD: sleep.c,v 1.19 2003/08/07 09:05:41 agc Exp $"); +__RCSID("$NetBSD: sleep.c,v 1.20 2005/10/17 10:11:46 elad Exp $"); #endif #endif /* not lint */ @@ -103,7 +103,7 @@ main(int argc, char *argv[]) if (fracflag) { val = atof(arg); if (val <= 0) - exit(0); + usage(); ival = floor(val); fval = (1000000000 * (val-ival)); ntime.tv_sec = ival;