aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-27 10:20:47 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-27 10:20:47 +0000
commit4daad9004d8f07991516970a1cbd77756fae7041 (patch)
treef1a17e4b168ef8fdf8af92ac5ce8deba89d38db2 /networking
parent1acdc89e992eb3f0548ff48ba586b31c9a0ae232 (diff)
downloadbusybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.gz
busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.tar.bz2
busybox-w32-4daad9004d8f07991516970a1cbd77756fae7041.zip
introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).
Diffstat (limited to 'networking')
-rw-r--r--networking/ether-wake.c2
-rw-r--r--networking/hostname.c2
-rw-r--r--networking/ifupdown.c2
-rw-r--r--networking/interface.c8
-rw-r--r--networking/libiproute/iptunnel.c4
-rw-r--r--networking/nslookup.c2
-rw-r--r--networking/traceroute.c2
-rw-r--r--networking/wget.c2
8 files changed, 12 insertions, 12 deletions
diff --git a/networking/ether-wake.c b/networking/ether-wake.c
index 36713837a..fc26ad07d 100644
--- a/networking/ether-wake.c
+++ b/networking/ether-wake.c
@@ -92,7 +92,7 @@ void bb_debug_dump_packet(unsigned char *outpack, int pktsize)
92 printf("packet dump:\n"); 92 printf("packet dump:\n");
93 for (i = 0; i < pktsize; ++i) { 93 for (i = 0; i < pktsize; ++i) {
94 printf("%2.2x ", outpack[i]); 94 printf("%2.2x ", outpack[i]);
95 if (i % 20 == 19) puts(""); 95 if (i % 20 == 19) bb_putchar('\n');
96 } 96 }
97 printf("\n\n"); 97 printf("\n\n");
98} 98}
diff --git a/networking/hostname.c b/networking/hostname.c
index 95dc4515d..6783dbacb 100644
--- a/networking/hostname.c
+++ b/networking/hostname.c
@@ -83,7 +83,7 @@ int hostname_main(int argc, char **argv)
83 while (hp->h_addr_list[0]) { 83 while (hp->h_addr_list[0]) {
84 printf("%s ", inet_ntoa(*(struct in_addr *) (*hp->h_addr_list++))); 84 printf("%s ", inet_ntoa(*(struct in_addr *) (*hp->h_addr_list++)));
85 } 85 }
86 puts(""); 86 bb_putchar('\n');
87 } 87 }
88 } 88 }
89 /* Set the hostname */ 89 /* Set the hostname */
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 299d36346..02e13ed27 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1259,7 +1259,7 @@ int ifupdown_main(int argc, char **argv)
1259 iface_list = iface_list->link; 1259 iface_list = iface_list->link;
1260 } 1260 }
1261 if (VERBOSE) { 1261 if (VERBOSE) {
1262 puts(""); 1262 bb_putchar('\n');
1263 } 1263 }
1264 1264
1265 if (!okay && !FORCE) { 1265 if (!okay && !FORCE) {
diff --git a/networking/interface.c b/networking/interface.c
index 61ce12ef1..471ac529e 100644
--- a/networking/interface.c
+++ b/networking/interface.c
@@ -937,7 +937,7 @@ static void ife_print(struct interface *ptr)
937 printf("(auto)"); 937 printf("(auto)");
938 } 938 }
939#endif 939#endif
940 puts(""); 940 bb_putchar('\n');
941 941
942 if (ptr->has_ip) { 942 if (ptr->has_ip) {
943 printf(" %s addr:%s ", ap->name, 943 printf(" %s addr:%s ", ap->name,
@@ -1073,7 +1073,7 @@ static void ife_print(struct interface *ptr)
1073 if (ptr->outfill || ptr->keepalive) 1073 if (ptr->outfill || ptr->keepalive)
1074 printf(" Outfill:%d Keepalive:%d", ptr->outfill, ptr->keepalive); 1074 printf(" Outfill:%d Keepalive:%d", ptr->outfill, ptr->keepalive);
1075#endif 1075#endif
1076 puts(""); 1076 bb_putchar('\n');
1077 1077
1078 /* If needed, display the interface statistics. */ 1078 /* If needed, display the interface statistics. */
1079 1079
@@ -1122,9 +1122,9 @@ static void ife_print(struct interface *ptr)
1122 } 1122 }
1123 if (ptr->map.dma) 1123 if (ptr->map.dma)
1124 printf("DMA chan:%x ", ptr->map.dma); 1124 printf("DMA chan:%x ", ptr->map.dma);
1125 puts(""); 1125 bb_putchar('\n');
1126 } 1126 }
1127 puts(""); 1127 bb_putchar('\n');
1128} 1128}
1129 1129
1130 1130
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c
index 2b1713556..a936a4275 100644
--- a/networking/libiproute/iptunnel.c
+++ b/networking/libiproute/iptunnel.c
@@ -482,7 +482,7 @@ static void do_tunnels_list(struct ip_tunnel_parm *p)
482 (p->i_key && p1.i_key != p->i_key)) 482 (p->i_key && p1.i_key != p->i_key))
483 continue; 483 continue;
484 print_tunnel(&p1); 484 print_tunnel(&p1);
485 puts(""); 485 bb_putchar('\n');
486 } 486 }
487} 487}
488 488
@@ -512,7 +512,7 @@ static int do_show(int argc, char **argv)
512 return -1; 512 return -1;
513 513
514 print_tunnel(&p); 514 print_tunnel(&p);
515 puts(""); 515 bb_putchar('\n');
516 return 0; 516 return 0;
517} 517}
518 518
diff --git a/networking/nslookup.c b/networking/nslookup.c
index 0036d0d17..e5bb56f81 100644
--- a/networking/nslookup.c
+++ b/networking/nslookup.c
@@ -112,7 +112,7 @@ static void server_print(void)
112 print_host(server, "Server:"); 112 print_host(server, "Server:");
113 if (ENABLE_FEATURE_CLEAN_UP) 113 if (ENABLE_FEATURE_CLEAN_UP)
114 free(server); 114 free(server);
115 puts(""); 115 bb_putchar('\n');
116} 116}
117 117
118/* alter the global _res nameserver structure to use 118/* alter the global _res nameserver structure to use
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 2d09c7197..e8d486f4c 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -1322,7 +1322,7 @@ int traceroute_main(int argc, char **argv)
1322 printf(" *"); 1322 printf(" *");
1323 (void)fflush(stdout); 1323 (void)fflush(stdout);
1324 } 1324 }
1325 putchar('\n'); 1325 bb_putchar('\n');
1326 if (got_there || 1326 if (got_there ||
1327 (unreachable > 0 && unreachable >= nprobes - 1)) 1327 (unreachable > 0 && unreachable >= nprobes - 1))
1328 break; 1328 break;
diff --git a/networking/wget.c b/networking/wget.c
index 86d6f00ec..df1a45b2a 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -142,7 +142,7 @@ static void progressmeter(int flag)
142 /* last call to progressmeter */ 142 /* last call to progressmeter */
143 alarm(0); 143 alarm(0);
144 transferred = 0; 144 transferred = 0;
145 putc('\n', stderr); 145 fputc('\n', stderr);
146 } else { 146 } else {
147 if (flag == -1) { 147 if (flag == -1) {
148 /* first call to progressmeter */ 148 /* first call to progressmeter */