diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-24 20:45:10 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-24 20:45:10 +0200 |
commit | f98705a00c15fc029116e00507abcfb745b86bfa (patch) | |
tree | 0b903eae452c86209712288914cf36b7d1952bd7 | |
parent | d320a1e7a57512e351aa119beb2c18115f9c80ae (diff) | |
download | busybox-w32-f98705a00c15fc029116e00507abcfb745b86bfa.tar.gz busybox-w32-f98705a00c15fc029116e00507abcfb745b86bfa.tar.bz2 busybox-w32-f98705a00c15fc029116e00507abcfb745b86bfa.zip |
dumpleases: string reuse
text data bss dec hex filename
926254 906 17160 944320 e68c0 busybox_old
926242 906 17160 944308 e68b4 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/udhcp/dumpleases.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c index f68e499e7..987cc9aff 100644 --- a/networking/udhcp/dumpleases.c +++ b/networking/udhcp/dumpleases.c | |||
@@ -57,10 +57,12 @@ int dumpleases_main(int argc UNUSED_PARAM, char **argv) | |||
57 | 57 | ||
58 | fd = xopen(file, O_RDONLY); | 58 | fd = xopen(file, O_RDONLY); |
59 | 59 | ||
60 | printf("Mac Address IP Address Host Name Expires %s\n", | ||
61 | (opt & OPT_a) ? "at" : "in"); | ||
62 | /* "00:00:00:00:00:00 255.255.255.255 ABCDEFGHIJKLMNOPQRS Wed Jun 30 21:49:08 1993" */ | ||
63 | /* "123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 */ | 60 | /* "123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 */ |
61 | /* "00:00:00:00:00:00 255.255.255.255 ABCDEFGHIJKLMNOPQRS Wed Jun 30 21:49:08 1993" */ | ||
62 | printf("Mac %-14s" "IP %-13s" "Host %-15s" "Expires %s\n", | ||
63 | "Address", "Address", "Name", | ||
64 | (opt & OPT_a) ? "at" : "in" | ||
65 | ); | ||
64 | 66 | ||
65 | xread(fd, &written_at, sizeof(written_at)); | 67 | xread(fd, &written_at, sizeof(written_at)); |
66 | written_at = SWAP_BE64(written_at); | 68 | written_at = SWAP_BE64(written_at); |