aboutsummaryrefslogtreecommitdiff
path: root/bin/date/date.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1996-04-06 01:42:09 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1996-04-06 01:42:09 +0000
commit008ff22c41eed3f168644f751f39f6dd7359274a (patch)
tree042f6560a751a14a90390ae3d49e5a4b13aeea78 /bin/date/date.c
parent8577a3695724cf8d7395bf505116dc185c7da982 (diff)
downloadsrc-008ff22c41eed3f168644f751f39f6dd7359274a.tar.gz
src-008ff22c41eed3f168644f751f39f6dd7359274a.zip
For nonexisten time use proper diagnostic instead of bad format and usage
Notes
Notes: svn path=/head/; revision=15068
Diffstat (limited to 'bin/date/date.c')
-rw-r--r--bin/date/date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/date/date.c b/bin/date/date.c
index c842ae9b3ec7..12261be00da6 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: date.c,v 1.5 1995/08/05 23:08:17 ache Exp $
+ * $Id: date.c,v 1.6 1995/10/23 20:26:53 ache Exp $
*/
#ifndef lint
@@ -210,7 +210,7 @@ setthetime(p)
/* convert broken-down time to GMT clock time */
if ((tval = mktime(lt)) == -1)
- badformat();
+ errx(1, "nonexistent time");
/* set the time */
if (nflag || netsettime(tval)) {