From owner-freebsd-bugs Sat Mar 10 7:30: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8A92637B719 for ; Sat, 10 Mar 2001 07:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2AFU1U26942; Sat, 10 Mar 2001 07:30:01 -0800 (PST) (envelope-from gnats) Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by hub.freebsd.org (Postfix) with ESMTP id 97CBE37B718 for ; Sat, 10 Mar 2001 07:26:20 -0800 (PST) (envelope-from andrew@ugh.net.au) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id 9DEBBA86A; Sun, 11 Mar 2001 02:26:20 +1100 (EST) Message-Id: <20010310152620.9DEBBA86A@starbug.ugh.net.au> Date: Sun, 11 Mar 2001 02:26:20 +1100 (EST) From: andrew@ugh.net.au Reply-To: andrew@ugh.net.au To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/25654: minor style(9) fix for sleep Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 25654 >Category: bin >Synopsis: minor style(9) fix for sleep >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 10 07:30:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Andrew >Release: FreeBSD 4.2-STABLE i386 >Organization: UgH! >Environment: >Description: sleep should exit with EX_USAGE if given incorrect arguments. >How-To-Repeat: sleep blah blah >Fix: --- sleep.c.orig Fri Oct 1 17:53:40 1999 +++ sleep.c Sun Mar 11 01:18:25 2001 @@ -49,6 +49,7 @@ #include #include #include +#include #include #include @@ -132,5 +133,5 @@ { (void)fprintf(stderr, "usage: sleep seconds\n"); - exit(1); + exit(EX_USAGE); } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message