summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-02-11 11:25:06 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-02-11 11:25:06 +0100
commitc90079aaf07ed574b11ade34af899cb4980ac9f5 (patch)
treeaa64dd94b2fa20656b53f3f09f706df28ec8f52e /plugins
parent1b84d5998926df6ef1b2bbfc9fe5a59a80c5564c (diff)
downloadrsyslog-c90079aaf07ed574b11ade34af899cb4980ac9f5.tar.gz
rsyslog-c90079aaf07ed574b11ade34af899cb4980ac9f5.tar.xz
rsyslog-c90079aaf07ed574b11ade34af899cb4980ac9f5.zip
fixed some compile issues in recent systemd patch
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imuxsock/imuxsock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
index e456a113..75f97db4 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -381,7 +381,7 @@ openLogSocket(lstn_t *pLstn)
int fd;
for (fd = SD_LISTEN_FDS_START; fd < SD_LISTEN_FDS_START + sd_fds; fd++) {
- if( sd_is_socket_unix(fd, SOCK_DGRAM, -1, pLstn->sockName, 0) == 1) {
+ if( sd_is_socket_unix(fd, SOCK_DGRAM, -1, (const char*) pLstn->sockName, 0) == 1) {
/* ok, it matches -- just use as is */
pLstn->fd = fd;
@@ -767,7 +767,7 @@ CODESTARTwillRun
sd_fds = sd_listen_fds(0);
if (sd_fds < 0) {
- errmsg.LogError(-r, NO_ERRCODE, "imuxsock: Failed to acquire systemd socket");
+ errmsg.LogError(-sd_fds, NO_ERRCODE, "imuxsock: Failed to acquire systemd socket");
ABORT_FINALIZE(RS_RET_ERR_CRE_AFUX);
}