summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorGlenn L McGrath2004-02-17 07:58:04 +0000
committerGlenn L McGrath2004-02-17 07:58:04 +0000
commitc2266bd51990883ff6f7de4a4ca22a4bef2050c9 (patch)
treeb9fcbcdcb4d1814b585905d8e39586e132804bde /coreutils
parent5f11541bd4a38b3191b690c238386b2fb98105ec (diff)
downloadbusybox-c2266bd51990883ff6f7de4a4ca22a4bef2050c9.zip
busybox-c2266bd51990883ff6f7de4a4ca22a4bef2050c9.tar.gz
Woops, im getting ahead of myself, we dont have the -r (refernece)
option yet
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/date.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index 46d2e10..1aa3e22 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -118,7 +118,9 @@ static struct tm *date_conv_ftime(struct tm *tm_time, const char *t_string)
#define DATE_OPT_SET 0x02
#define DATE_OPT_UTC 0x04
#define DATE_OPT_DATE 0x08
-#define DATE_OPT_REFERENCE 0x10
+#ifdef CONFIG_FEATURE_DATE_ISOFMT
+# define DATE_OPT_TIMESPEC 0x10
+#endif
int date_main(int argc, char **argv)
{
@@ -156,7 +158,7 @@ int date_main(int argc, char **argv)
if(opt & 0x80000000UL)
bb_show_usage();
#ifdef CONFIG_FEATURE_DATE_ISOFMT
- if(opt & DATE_OPT_REFERENCE) {
+ if(opt & DATE_OPT_TIMESPEC) {
if (!isofmt_arg) {
ifmt = 1;
} else {