From 7049ff8696c3c2a1be0f9901d7e2473568b8f918 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 25 Jun 2008 09:53:17 +0000 Subject: whitespace fixes. no code changes --- coreutils/ls.c | 4 ++-- coreutils/stty.c | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'coreutils') diff --git a/coreutils/ls.c b/coreutils/ls.c index 83ad8cd00..7fddefef5 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -169,12 +169,12 @@ enum { #endif #define current_time_t (G.current_time_t) /* memset: we have to zero it out because of NOEXEC */ -#define INIT_G() { \ +#define INIT_G() do { \ memset(&G, 0, sizeof(G)); \ USE_FEATURE_AUTOWIDTH(tabstops = COLUMN_GAP;) \ USE_FEATURE_AUTOWIDTH(terminal_width = TERMINAL_WIDTH;) \ USE_FEATURE_LS_TIMESTAMPS(time(¤t_time_t);) \ -} +} while (0) #if ENABLE_FEATURE_ASSUME_UNICODE diff --git a/coreutils/stty.c b/coreutils/stty.c index a17955a6a..c9f11a8da 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c @@ -627,11 +627,10 @@ struct globals { char buf[10]; }; #define G (*(struct globals*)&bb_common_bufsiz1) -#define INIT_G() \ - do { \ - G.device_name = bb_msg_standard_input; \ - G.max_col = 80; \ - } while (0) +#define INIT_G() do { \ + G.device_name = bb_msg_standard_input; \ + G.max_col = 80; \ +} while (0) /* Return a string that is the printable representation of character CH */ -- cgit v1.2.3