diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-12 17:02:35 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-12 17:02:35 +0000 |
commit | be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7 (patch) | |
tree | 088bc5b6e06d693ad8ca3eba078c0f3a8e302a24 /coreutils/date.c | |
parent | e58771e73c0d8589a458ede4088f5ba70eff917b (diff) | |
download | busybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.tar.gz busybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.tar.bz2 busybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.zip |
Always report the applet name when doing error reporting.
Diffstat (limited to 'coreutils/date.c')
-rw-r--r-- | coreutils/date.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/date.c b/coreutils/date.c index 9e8e3f3eb..bc6d13137 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -66,7 +66,7 @@ struct tm *date_conv_time(struct tm *tm_time, const char *t_string) | |||
66 | &(tm_time->tm_min), &(tm_time->tm_year)); | 66 | &(tm_time->tm_min), &(tm_time->tm_year)); |
67 | 67 | ||
68 | if (nr < 4 || nr > 5) { | 68 | if (nr < 4 || nr > 5) { |
69 | fatalError(invalid_date, "date", t_string); | 69 | fatalError(invalid_date, t_string); |
70 | } | 70 | } |
71 | 71 | ||
72 | /* correct for century - minor Y2K problem here? */ | 72 | /* correct for century - minor Y2K problem here? */ |
@@ -150,7 +150,7 @@ struct tm *date_conv_ftime(struct tm *tm_time, const char *t_string) | |||
150 | 150 | ||
151 | } | 151 | } |
152 | 152 | ||
153 | fatalError(invalid_date, "date", t_string); | 153 | fatalError(invalid_date, t_string); |
154 | } | 154 | } |
155 | 155 | ||
156 | 156 | ||
@@ -186,7 +186,7 @@ int date_main(int argc, char **argv) | |||
186 | case 'u': | 186 | case 'u': |
187 | utc = 1; | 187 | utc = 1; |
188 | if (putenv("TZ=UTC0") != 0) | 188 | if (putenv("TZ=UTC0") != 0) |
189 | fatalError(memory_exhausted, "date"); | 189 | fatalError(memory_exhausted); |
190 | break; | 190 | break; |
191 | case 'd': | 191 | case 'd': |
192 | use_arg = 1; | 192 | use_arg = 1; |
@@ -236,12 +236,12 @@ int date_main(int argc, char **argv) | |||
236 | /* Correct any day of week and day of year etc fields */ | 236 | /* Correct any day of week and day of year etc fields */ |
237 | tm = mktime(&tm_time); | 237 | tm = mktime(&tm_time); |
238 | if (tm < 0) | 238 | if (tm < 0) |
239 | fatalError(invalid_date, "date", date_str); | 239 | fatalError(invalid_date, date_str); |
240 | 240 | ||
241 | /* if setting time, set it */ | 241 | /* if setting time, set it */ |
242 | if (set_time) { | 242 | if (set_time) { |
243 | if (stime(&tm) < 0) { | 243 | if (stime(&tm) < 0) { |
244 | fatalError("date: can't set date.\n"); | 244 | fatalError("can't set date.\n"); |
245 | } | 245 | } |
246 | } | 246 | } |
247 | } | 247 | } |