[Toybox] [PATCH] date: fix some tests.

enh enh at google.com
Fri Oct 5 15:18:25 PDT 2018


`errno` isn't meaningful here.
---
 toys/posix/date.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/posix/date.c b/toys/posix/date.c
index 7a42fc8..9f244ca 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);
 }
-- 
2.19.0.605.g01d371f741-goog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-date-fix-some-tests.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20181005/a7e28c78/attachment.bin>


More information about the Toybox mailing list