summaryrefslogtreecommitdiff
path: root/syslogd.c
diff options
context:
space:
mode:
authorEric Andersen2001-03-23 17:08:21 +0000
committerEric Andersen2001-03-23 17:08:21 +0000
commitf6aa13d403085b1645b65caae4517a338f4636e6 (patch)
treef4c9ca939b621dfd1efcd227f0fe83813fa088a9 /syslogd.c
parent82ab8da24595fced332faf947cc63497216b09db (diff)
downloadbusybox-f6aa13d403085b1645b65caae4517a338f4636e6.zip
busybox-f6aa13d403085b1645b65caae4517a338f4636e6.tar.gz
-Wshadow tr fix from Jeff Garzik
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/syslogd.c b/syslogd.c
index 52642e3..e5ddd3b 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -55,7 +55,7 @@
#define __LOG_FILE "/var/log/messages"
/* Path to the unix socket */
-char lfile[BUFSIZ] = "";
+static char lfile[BUFSIZ] = "";
static char *logFilePath = __LOG_FILE;
@@ -390,18 +390,18 @@ static void domark(int sig)
static const int BUFSIZE = 1023;
static int serveConnection (int conn)
{
- RESERVE_BB_BUFFER(buf, BUFSIZE + 1);
+ RESERVE_BB_BUFFER(tmpbuf, BUFSIZE + 1);
int n_read;
- while ((n_read = read (conn, buf, BUFSIZE )) > 0) {
+ while ((n_read = read (conn, tmpbuf, BUFSIZE )) > 0) {
int pri = (LOG_USER | LOG_NOTICE);
char line[ BUFSIZE + 1 ];
unsigned char c;
- char *p = buf, *q = line;
+ char *p = tmpbuf, *q = line;
- buf[ n_read - 1 ] = '\0';
+ tmpbuf[ n_read - 1 ] = '\0';
while (p && (c = *p) && q < &line[ sizeof (line) - 1 ]) {
if (c == '<') {