summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-03 21:00:43 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-03 21:00:43 +0000
commit8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (patch)
tree8c555cc94aca9fabd177526e554d93bed4886642 /networking
parent67b23e6043d8e2b30b0bf3bc105b8583c2a26db5 (diff)
downloadbusybox-w32-8f8f268cfdecb4cabeb2e649a73afc7a485aeff5.tar.gz
busybox-w32-8f8f268cfdecb4cabeb2e649a73afc7a485aeff5.tar.bz2
busybox-w32-8f8f268cfdecb4cabeb2e649a73afc7a485aeff5.zip
bb_applet_name -> applet_name
Diffstat (limited to 'networking')
-rw-r--r--networking/fakeidentd.c2
-rw-r--r--networking/ftpgetput.c4
-rw-r--r--networking/ifupdown.c2
-rw-r--r--networking/inetd.c2
-rw-r--r--networking/nameif.c2
-rw-r--r--networking/telnetd.c2
-rw-r--r--networking/traceroute.c2
-rw-r--r--networking/udhcp/common.c4
-rw-r--r--networking/zcip.c2
9 files changed, 11 insertions, 11 deletions
diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c
index 6070e5f2d..c8d32765a 100644
--- a/networking/fakeidentd.c
+++ b/networking/fakeidentd.c
@@ -219,7 +219,7 @@ static int checkInput(char *buf, int len, int l)
219int fakeidentd_main(int argc, char **argv) 219int fakeidentd_main(int argc, char **argv)
220{ 220{
221 /* This applet is an inetd-style daemon */ 221 /* This applet is an inetd-style daemon */
222 openlog(bb_applet_name, 0, LOG_DAEMON); 222 openlog(applet_name, 0, LOG_DAEMON);
223 logmode = LOGMODE_SYSLOG; 223 logmode = LOGMODE_SYSLOG;
224 224
225 memset(conns, 0, sizeof(conns)); 225 memset(conns, 0, sizeof(conns));
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index 25b7f1427..492854153 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -288,10 +288,10 @@ int ftpgetput_main(int argc, char **argv)
288 int (*ftp_action)(ftp_host_info_t *, FILE *, const char *, char *) = NULL; 288 int (*ftp_action)(ftp_host_info_t *, FILE *, const char *, char *) = NULL;
289 289
290 /* Check to see if the command is ftpget or ftput */ 290 /* Check to see if the command is ftpget or ftput */
291 if (ENABLE_FTPPUT && (!ENABLE_FTPGET || bb_applet_name[3] == 'p')) { 291 if (ENABLE_FTPPUT && (!ENABLE_FTPGET || applet_name[3] == 'p')) {
292 ftp_action = ftp_send; 292 ftp_action = ftp_send;
293 } 293 }
294 if (ENABLE_FTPGET && (!ENABLE_FTPPUT || bb_applet_name[3] == 'g')) { 294 if (ENABLE_FTPGET && (!ENABLE_FTPPUT || applet_name[3] == 'g')) {
295 ftp_action = ftp_receive; 295 ftp_action = ftp_receive;
296 } 296 }
297 297
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index f34287580..6334cbc43 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1080,7 +1080,7 @@ int ifupdown_main(int argc, char **argv)
1080 int any_failures = 0; 1080 int any_failures = 0;
1081 int i; 1081 int i;
1082 1082
1083 if (bb_applet_name[2] == 'u') { 1083 if (applet_name[2] == 'u') {
1084 /* ifup command */ 1084 /* ifup command */
1085 cmds = iface_up; 1085 cmds = iface_up;
1086 } else { 1086 } else {
diff --git a/networking/inetd.c b/networking/inetd.c
index 350f91dc4..e22115a5c 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -1251,7 +1251,7 @@ inetd_main(int argc, char *argv[])
1251 LastArg = envp[-1] + strlen(envp[-1]); 1251 LastArg = envp[-1] + strlen(envp[-1]);
1252#endif 1252#endif
1253 1253
1254 openlog(bb_applet_name, LOG_PID | LOG_NOWAIT, LOG_DAEMON); 1254 openlog(applet_name, LOG_PID | LOG_NOWAIT, LOG_DAEMON);
1255 1255
1256 opt = getopt32(argc, argv, "R:f", &stoomany); 1256 opt = getopt32(argc, argv, "R:f", &stoomany);
1257 if(opt & 1) { 1257 if(opt & 1) {
diff --git a/networking/nameif.c b/networking/nameif.c
index 146eccea9..f60a97e8b 100644
--- a/networking/nameif.c
+++ b/networking/nameif.c
@@ -66,7 +66,7 @@ int nameif_main(int argc, char **argv)
66 mactable_t *ch; 66 mactable_t *ch;
67 67
68 if (1 & getopt32(argc, argv, "sc:", &fname)) { 68 if (1 & getopt32(argc, argv, "sc:", &fname)) {
69 openlog(bb_applet_name, 0, LOG_LOCAL0); 69 openlog(applet_name, 0, LOG_LOCAL0);
70 logmode = LOGMODE_SYSLOG; 70 logmode = LOGMODE_SYSLOG;
71 } 71 }
72 72
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 808d4be51..1c4dede39 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -384,7 +384,7 @@ telnetd_main(int argc, char **argv)
384 * look into syslog for all errors, even early ones. 384 * look into syslog for all errors, even early ones.
385 * Direct all output to syslog at once. 385 * Direct all output to syslog at once.
386 */ 386 */
387 openlog(bb_applet_name, 0, LOG_USER); 387 openlog(applet_name, 0, LOG_USER);
388 logmode = LOGMODE_SYSLOG; 388 logmode = LOGMODE_SYSLOG;
389 389
390 opt = getopt32(argc, argv, "f:l:" USE_FEATURE_TELNETD_INETD("p:b:"), 390 opt = getopt32(argc, argv, "f:l:" USE_FEATURE_TELNETD_INETD("p:b:"),
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 042cbe35a..4af523625 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -697,7 +697,7 @@ send_probe(int seq, int ttl, struct timeval *tp)
697 if (cc < 0) 697 if (cc < 0)
698 bb_perror_msg_and_die("sendto"); 698 bb_perror_msg_and_die("sendto");
699 printf("%s: wrote %s %d chars, ret=%d\n", 699 printf("%s: wrote %s %d chars, ret=%d\n",
700 bb_applet_name, hostname, packlen, cc); 700 applet_name, hostname, packlen, cc);
701 (void)fflush(stdout); 701 (void)fflush(stdout);
702 } 702 }
703} 703}
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index c34b3de26..ca0c79b95 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -82,9 +82,9 @@ void udhcp_start_log_and_pid(const char *pidfile)
82 setlinebuf(stdout); 82 setlinebuf(stdout);
83 83
84 if (ENABLE_FEATURE_UDHCP_SYSLOG) { 84 if (ENABLE_FEATURE_UDHCP_SYSLOG) {
85 openlog(bb_applet_name, LOG_PID, LOG_LOCAL0); 85 openlog(applet_name, LOG_PID, LOG_LOCAL0);
86 logmode |= LOGMODE_SYSLOG; 86 logmode |= LOGMODE_SYSLOG;
87 } 87 }
88 88
89 bb_info_msg("%s (v%s) started", bb_applet_name, BB_VER); 89 bb_info_msg("%s (v%s) started", applet_name, BB_VER);
90} 90}
diff --git a/networking/zcip.c b/networking/zcip.c
index d9c1adf19..6bd7f255b 100644
--- a/networking/zcip.c
+++ b/networking/zcip.c
@@ -222,7 +222,7 @@ int zcip_main(int argc, char *argv[])
222 if (!FOREGROUND) { 222 if (!FOREGROUND) {
223 /* Do it early, before all bb_xx_msg calls */ 223 /* Do it early, before all bb_xx_msg calls */
224 logmode = LOGMODE_SYSLOG; 224 logmode = LOGMODE_SYSLOG;
225 openlog(bb_applet_name, 0, LOG_DAEMON); 225 openlog(applet_name, 0, LOG_DAEMON);
226 } 226 }
227 if (opts & 4) { // -r n.n.n.n 227 if (opts & 4) { // -r n.n.n.n
228 if (inet_aton(r_opt, &ip) == 0 228 if (inet_aton(r_opt, &ip) == 0