aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}