summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-07-19 07:14:51 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-07-19 07:14:51 +0000
commitf9dcbd059a3e9c4a6b5694319a113ff6d74fb836 (patch)
treeb78d9d15a53fd0259e9c5dea9eac593a52915b37 /syslogd.c
parente9303cb9870a759b5f9f74e6fbea21b564306d73 (diff)
downloadrsyslog-f9dcbd059a3e9c4a6b5694319a113ff6d74fb836.tar.gz
rsyslog-f9dcbd059a3e9c4a6b5694319a113ff6d74fb836.tar.xz
rsyslog-f9dcbd059a3e9c4a6b5694319a113ff6d74fb836.zip
fixed a small bug that caused compilation to fail on debianv0-9-3
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syslogd.c b/syslogd.c
index 5177efbb..b837b9f7 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -4882,8 +4882,8 @@ void cfline(line, f)
for(q = p ; *p && *p != ';' && *p != ':' ; ++p)
/* JUST SKIP */;
if(*p == ':') { /* process port */
- *p = '\0'; /* trick to obtain hostname (later)! */
register int i = 0;
+ *p = '\0'; /* trick to obtain hostname (later)! */
for(++p ; *p && isdigit(*p) ; ++p) {
i = i * 10 + *p - '0';
}