summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-04-21 10:33:17 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-04-21 10:33:17 +0000
commitec78980cb02009c6bc329f04fc1d77da3ebdf638 (patch)
tree1f61e28f74bd2004099f0cfd01a254abb26cb63b /syslogd.c
parentbc5c4c1a3831f9abbde427e894165f1cd7c42bc0 (diff)
downloadrsyslog-ec78980cb02009c6bc329f04fc1d77da3ebdf638.tar.gz
rsyslog-ec78980cb02009c6bc329f04fc1d77da3ebdf638.tar.xz
rsyslog-ec78980cb02009c6bc329f04fc1d77da3ebdf638.zip
removed some #ifdef's BSD because we can do the same on RedHat, too...
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/syslogd.c b/syslogd.c
index bc303870..3670354c 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -2487,11 +2487,7 @@ fprintf(stderr, "create_unix_socket(%s)\n", path);
(void) strncpy(sunx.sun_path, path, sizeof(sunx.sun_path));
fd = socket(AF_UNIX, SOCK_DGRAM, 0);
if (fd < 0 || bind(fd, (struct sockaddr *) &sunx,
-#ifdef BSD
SUN_LEN(&sunx)) < 0 ||
-#else
- sizeof(sunx.sun_family)+strlen(sunx.sun_path)) < 0 ||
-#endif
chmod(path, 0666) < 0) {
(void) snprintf(line, sizeof(line), "cannot create %s", path);
logerror(line);
@@ -3596,7 +3592,7 @@ void endtty()
longjmp(ttybuf, 1);
}
-/** TODO:
+/**
* BSD setutent/getutent() replacement routines
* The following routines emulate setutent() and getutent() under
* BSD because they are not available there. We only emulate what we actually