aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-07 00:44:31 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-07 00:44:31 +0000
commit7d4921f99c917fe3e1aa46a37ed6de4cf7e38d91 (patch)
tree706ebe3ac53a058c11f8a053f073fa6a387f0bbb
parente826b429fa9ed4c489da8a582183a604bcfb5e67 (diff)
downloadbusybox-w32-7d4921f99c917fe3e1aa46a37ed6de4cf7e38d91.tar.gz
busybox-w32-7d4921f99c917fe3e1aa46a37ed6de4cf7e38d91.tar.bz2
busybox-w32-7d4921f99c917fe3e1aa46a37ed6de4cf7e38d91.zip
random small shrinkage and elimination of statics
git-svn-id: svn://busybox.net/trunk/busybox@18354 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--archival/libunarchive/get_header_ar.c4
-rw-r--r--include/libbb.h2
-rw-r--r--libbb/verror_msg.c2
-rw-r--r--networking/isrv_identd.c7
4 files changed, 8 insertions, 7 deletions
diff --git a/archival/libunarchive/get_header_ar.c b/archival/libunarchive/get_header_ar.c
index c691f1b2f..88c0220ad 100644
--- a/archival/libunarchive/get_header_ar.c
+++ b/archival/libunarchive/get_header_ar.c
@@ -23,9 +23,9 @@ char get_header_ar(archive_handle_t *archive_handle)
23 char magic[2]; 23 char magic[2];
24 } formatted; 24 } formatted;
25 } ar; 25 } ar;
26#ifdef CONFIG_FEATURE_AR_LONG_FILENAMES 26#if ENABLE_FEATURE_AR_LONG_FILENAMES
27 static char *ar_long_names; 27 static char *ar_long_names;
28 static unsigned int ar_long_name_size; 28 static unsigned ar_long_name_size;
29#endif 29#endif
30 30
31 /* dont use xread as we want to handle the error ourself */ 31 /* dont use xread as we want to handle the error ourself */
diff --git a/include/libbb.h b/include/libbb.h
index dca611b68..764d707b8 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -604,7 +604,7 @@ enum {
604 LOGMODE_BOTH = LOGMODE_SYSLOG + LOGMODE_STDIO, 604 LOGMODE_BOTH = LOGMODE_SYSLOG + LOGMODE_STDIO,
605}; 605};
606extern const char *msg_eol; 606extern const char *msg_eol;
607extern int logmode; 607extern smallint logmode;
608extern int die_sleep; 608extern int die_sleep;
609extern int xfunc_error_retval; 609extern int xfunc_error_retval;
610extern void sleep_and_die(void) ATTRIBUTE_NORETURN; 610extern void sleep_and_die(void) ATTRIBUTE_NORETURN;
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c
index 0f018c517..526b9d36c 100644
--- a/libbb/verror_msg.c
+++ b/libbb/verror_msg.c
@@ -10,7 +10,7 @@
10#include "libbb.h" 10#include "libbb.h"
11#include <syslog.h> 11#include <syslog.h>
12 12
13int logmode = LOGMODE_STDIO; 13smallint logmode = LOGMODE_STDIO;
14const char *msg_eol = "\n"; 14const char *msg_eol = "\n";
15 15
16void bb_verror_msg(const char *s, va_list p, const char* strerr) 16void bb_verror_msg(const char *s, va_list p, const char* strerr)
diff --git a/networking/isrv_identd.c b/networking/isrv_identd.c
index c230c7ec3..59daf99ed 100644
--- a/networking/isrv_identd.c
+++ b/networking/isrv_identd.c
@@ -19,7 +19,7 @@ typedef struct identd_buf_t {
19 char buf[64 - 2*sizeof(int)]; 19 char buf[64 - 2*sizeof(int)];
20} identd_buf_t; 20} identd_buf_t;
21 21
22static const char *bogouser = "nobody"; 22#define bogouser bb_common_bufsiz1
23 23
24static int new_peer(isrv_state_t *state, int fd) 24static int new_peer(isrv_state_t *state, int fd)
25{ 25{
@@ -108,8 +108,9 @@ int fakeidentd_main(int argc, char **argv)
108 int fd; 108 int fd;
109 109
110 opt = getopt32(argc, argv, "fiwb:", &bind_address); 110 opt = getopt32(argc, argv, "fiwb:", &bind_address);
111 if (optind < argc) 111 strcpy(bogouser, "nobody");
112 bogouser = argv[optind]; 112 if (argv[optind])
113 strncpy(bogouser, argv[optind], sizeof(bogouser));
113 114
114 /* Daemonize if no -f and no -i and no -w */ 115 /* Daemonize if no -f and no -i and no -w */
115 if (!(opt & OPT_fiw)); 116 if (!(opt & OPT_fiw));