diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
commit | 6ca409e0e4c198fe3081346eebbae3f068fe605a (patch) | |
tree | 060cb05d99220a1eda399194d1209c269f0e8cd8 /coreutils/date.c | |
parent | 4185548984357df91311f30c8e43d95f33922576 (diff) | |
download | busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2 busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip |
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount
of padding (unfortunately, needs hand editing ATM).
*: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts
size saving: 0.5k
Diffstat (limited to 'coreutils/date.c')
-rw-r--r-- | coreutils/date.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/coreutils/date.c b/coreutils/date.c index 5e2bcee3b..5ee70f703 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -63,8 +63,9 @@ int date_main(int argc, char **argv) | |||
63 | if (!isofmt_arg) { | 63 | if (!isofmt_arg) { |
64 | ifmt = 0; /* default is date */ | 64 | ifmt = 0; /* default is date */ |
65 | } else { | 65 | } else { |
66 | static const char * const isoformats[] = | 66 | static const char *const isoformats[] = { |
67 | { "date", "hours", "minutes", "seconds" }; | 67 | "date", "hours", "minutes", "seconds" |
68 | }; | ||
68 | 69 | ||
69 | for (ifmt = 0; ifmt < 4; ifmt++) | 70 | for (ifmt = 0; ifmt < 4; ifmt++) |
70 | if (!strcmp(isofmt_arg, isoformats[ifmt])) | 71 | if (!strcmp(isofmt_arg, isoformats[ifmt])) |