aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-10-05 15:14:28 -0700
committerRob Landley <rob@landley.net>2018-10-06 13:16:13 -0500
commit4cc0bb10fd534a6f8b695282082b07936e934f85 (patch)
treec1219cf696685d9c3d90f30dc972cc76d4187faf
parent42d080fef4cc63e2cb5f660d8d95357104160216 (diff)
downloadtoybox-4cc0bb10fd534a6f8b695282082b07936e934f85.tar.gz
date: fix some tests.
`errno` isn't meaningful here.
-rw-r--r--toys/posix/date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/date.c b/toys/posix/date.c
index 7a42fc81..9f244ca0 100644
--- a/toys/posix/date.c
+++ b/toys/posix/date.c
@@ -228,5 +228,5 @@ void date_main(void)
bad_showdate:
setdate = TT.d;
bad_setdate:
- perror_exit("bad date '%s'", setdate);
+ error_exit("bad date '%s'", setdate);
}