Date: Mon, 2 Aug 2010 10:57:56 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sleep sleep.c Message-ID: <201008021058.o72AwCbZ064927@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2010-08-02 10:57:56 UTC
FreeBSD src repository
Modified files:
bin/sleep sleep.c
Log:
SVN rev 210749 on 2010-08-02 10:57:56Z by kib
Simplify argument parser by using sscanf(); simplify usage() by not
refusing to use stdio.
Reduce nesting level in the sleep loop by returning earlier for negative
timeouts.
Limit the maximum timeout to INT_MAX seconds.
Submitted by: bde
MFC after: 3 weeks
Revision Changes Path
1.23 +19 -72 src/bin/sleep/sleep.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008021058.o72AwCbZ064927>
