diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-12 00:32:05 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-12 00:32:05 +0000 |
commit | 51742f4bb0c57a4d5063ece9437a2f34a42e52c8 (patch) | |
tree | 7a912fc65ff43bdb09078d75bfc02ad8f5380b47 /networking | |
parent | 50f7f446ecaadef6895a4ee601567e0b68330637 (diff) | |
download | busybox-w32-51742f4bb0c57a4d5063ece9437a2f34a42e52c8.tar.gz busybox-w32-51742f4bb0c57a4d5063ece9437a2f34a42e52c8.tar.bz2 busybox-w32-51742f4bb0c57a4d5063ece9437a2f34a42e52c8.zip |
style fixes. No code changes
Diffstat (limited to 'networking')
-rw-r--r-- | networking/nc_bloaty.c | 8 | ||||
-rw-r--r-- | networking/nslookup.c | 2 | ||||
-rw-r--r-- | networking/route.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c index 173f5a867..57af7ebe5 100644 --- a/networking/nc_bloaty.c +++ b/networking/nc_bloaty.c | |||
@@ -149,13 +149,13 @@ enum { | |||
149 | /* Debug: squirt whatever message and sleep a bit so we can see it go by. */ | 149 | /* Debug: squirt whatever message and sleep a bit so we can see it go by. */ |
150 | /* Beware: writes to stdOUT... */ | 150 | /* Beware: writes to stdOUT... */ |
151 | #if 0 | 151 | #if 0 |
152 | #define Debug(...) do { printf(__VA_ARGS__); printf("\n"); fflush(stdout); sleep(1); } while(0) | 152 | #define Debug(...) do { printf(__VA_ARGS__); printf("\n"); fflush(stdout); sleep(1); } while (0) |
153 | #else | 153 | #else |
154 | #define Debug(...) do { } while(0) | 154 | #define Debug(...) do { } while (0) |
155 | #endif | 155 | #endif |
156 | 156 | ||
157 | #define holler_error(...) do { if (o_verbose) bb_error_msg(__VA_ARGS__); } while(0) | 157 | #define holler_error(...) do { if (o_verbose) bb_error_msg(__VA_ARGS__); } while (0) |
158 | #define holler_perror(...) do { if (o_verbose) bb_perror_msg(__VA_ARGS__); } while(0) | 158 | #define holler_perror(...) do { if (o_verbose) bb_perror_msg(__VA_ARGS__); } while (0) |
159 | 159 | ||
160 | /* catch: no-brainer interrupt handler */ | 160 | /* catch: no-brainer interrupt handler */ |
161 | static void catch(int sig) | 161 | static void catch(int sig) |
diff --git a/networking/nslookup.c b/networking/nslookup.c index 8076aff98..424a0e4b9 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c | |||
@@ -147,7 +147,7 @@ int nslookup_main(int argc, char **argv) | |||
147 | /* (but it also says "may be enabled in /etc/resolv.conf|) */ | 147 | /* (but it also says "may be enabled in /etc/resolv.conf|) */ |
148 | /*_res.options |= RES_USE_INET6;*/ | 148 | /*_res.options |= RES_USE_INET6;*/ |
149 | 149 | ||
150 | if(argc == 3) | 150 | if (argc == 3) |
151 | set_default_dns(argv[2]); | 151 | set_default_dns(argv[2]); |
152 | 152 | ||
153 | server_print(); | 153 | server_print(); |
diff --git a/networking/route.c b/networking/route.c index 5b3e68b4c..dfb8ee56f 100644 --- a/networking/route.c +++ b/networking/route.c | |||
@@ -174,7 +174,7 @@ static void INET_setroute(int action, char **args) | |||
174 | 174 | ||
175 | /* recognize x.x.x.x/mask format. */ | 175 | /* recognize x.x.x.x/mask format. */ |
176 | prefix = strchr(target, '/'); | 176 | prefix = strchr(target, '/'); |
177 | if(prefix) { | 177 | if (prefix) { |
178 | int prefix_len; | 178 | int prefix_len; |
179 | 179 | ||
180 | prefix_len = xatoul_range(prefix+1, 0, 32); | 180 | prefix_len = xatoul_range(prefix+1, 0, 32); |
@@ -193,7 +193,7 @@ static void INET_setroute(int action, char **args) | |||
193 | if (isnet < 0) { | 193 | if (isnet < 0) { |
194 | bb_error_msg_and_die("resolving %s", target); | 194 | bb_error_msg_and_die("resolving %s", target); |
195 | } | 195 | } |
196 | if(prefix) { | 196 | if (prefix) { |
197 | /* do not destroy prefix for process args */ | 197 | /* do not destroy prefix for process args */ |
198 | *prefix = '/'; | 198 | *prefix = '/'; |
199 | } | 199 | } |