summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>2012-09-12 12:59:38 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-12 12:59:38 +0200
commit2d538f14e2bae1407a3fb22c4a5244247dda1e4b (patch)
tree2de7b4ffe16c1c88744569da37921112c7e54121
parentd1de4cbd92a55c6b930fd84ee9fa5bbfee16aed6 (diff)
downloadrsyslog-2d538f14e2bae1407a3fb22c4a5244247dda1e4b.tar.gz
rsyslog-2d538f14e2bae1407a3fb22c4a5244247dda1e4b.tar.bz2
rsyslog-2d538f14e2bae1407a3fb22c4a5244247dda1e4b.zip
remove unused variables (if SCM_CREDENTIALS is not available)
-rw-r--r--ChangeLog4
-rw-r--r--plugins/imuxsock/imuxsock.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3073d2f8..a053d8ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
---------------------------------------------------------------------------
+Version 5.10.1 [V5-STABLE], 2012-0?-??
+- bugfix: remove invalid socket option call from imuxsock
+ Thanks to Cristian Ionescu-Idbohrn and Jonny Törnbom
+---------------------------------------------------------------------------
Version 5.10.0 [V5-STABLE], 2012-08-23
NOTE: this is the new rsyslog v5-stable, incorporating all changes from the
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
index b0247d6e..76474724 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -386,7 +386,9 @@ static inline rsRetVal
openLogSocket(lstn_t *pLstn)
{
DEFiRet;
+# if HAVE_SCM_CREDENTIALS
int one;
+# endif /* HAVE_SCM_CREDENTIALS */
if(pLstn->sockName[0] == '\0')
return -1;
@@ -802,8 +804,10 @@ static rsRetVal readSocket(lstn_t *pLstn)
struct ucred *cred;
struct timeval *ts;
uchar bufRcv[4096+1];
- char aux[128];
uchar *pRcv = NULL; /* receive buffer */
+# if HAVE_SCM_CREDENTIALS
+ char aux[128];
+# endif
assert(pLstn->fd >= 0);