From 6ca409e0e4c198fe3081346eebbae3f068fe605a Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 12 Aug 2007 20:58:27 +0000 Subject: 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 --- networking/interface.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'networking/interface.c') diff --git a/networking/interface.c b/networking/interface.c index 9e6ed63e0..61ce12ef1 100644 --- a/networking/interface.c +++ b/networking/interface.c @@ -871,7 +871,7 @@ static int hw_null_address(const struct hwtype *hw, void *ap) return 1; } -static const char TRext[] = "\0\0\0Ki\0Mi\0Gi\0Ti"; +static const char TRext[] ALIGN1 = "\0\0\0Ki\0Mi\0Gi\0Ti"; static void print_bytes_scaled(unsigned long long ull, const char *end) { @@ -1020,7 +1020,7 @@ static void ife_print(struct interface *ptr) if (ptr->flags == 0) { printf("[NO FLAGS] "); } else { - static const char ife_print_flags_strs[] = + static const char ife_print_flags_strs[] ALIGN1 = "UP\0" "BROADCAST\0" "DEBUG\0" @@ -1038,7 +1038,7 @@ static void ife_print(struct interface *ptr) "DYNAMIC\0" #endif ; - static const unsigned short ife_print_flags_mask[] = { + static const unsigned short ife_print_flags_mask[] ALIGN2 = { IFF_UP, IFF_BROADCAST, IFF_DEBUG, @@ -1051,9 +1051,9 @@ static void ife_print(struct interface *ptr) IFF_ALLMULTI, IFF_SLAVE, IFF_MASTER, - IFF_MULTICAST, + IFF_MULTICAST #ifdef HAVE_DYNAMIC - IFF_DYNAMIC, + ,IFF_DYNAMIC #endif }; const unsigned short *mask = ife_print_flags_mask; -- cgit v1.2.3