summaryrefslogtreecommitdiffstats
path: root/runtime/wtp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-04-21 18:16:57 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-04-21 18:16:57 +0100
commit236c96ffb124074d6efe3382b4d1b77da9a2986a (patch)
tree6edee7103c78c1b65e6fbb039f8fe96d60618869 /runtime/wtp.c
parentd02bd7b837e6b0b47df797cf61a6a8eb80bace7c (diff)
downloadrsyslog-236c96ffb124074d6efe3382b4d1b77da9a2986a.tar.gz
rsyslog-236c96ffb124074d6efe3382b4d1b77da9a2986a.tar.xz
rsyslog-236c96ffb124074d6efe3382b4d1b77da9a2986a.zip
cleanup of some compiler warnings
Diffstat (limited to 'runtime/wtp.c')
-rw-r--r--runtime/wtp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/wtp.c b/runtime/wtp.c
index ab7ca4bb..649ffa5a 100644
--- a/runtime/wtp.c
+++ b/runtime/wtp.c
@@ -329,11 +329,13 @@ wtpWrkrExecCancelCleanup(void *arg)
static void *
wtpWorker(void *arg) /* the arg is actually a wti object, even though we are in wtp! */
{
- uchar *pszDbgHdr;
- uchar thrdName[32] = "rs:";
wti_t *pWti = (wti_t*) arg;
wtp_t *pThis;
sigset_t sigSet;
+# if HAVE_PRCTL && defined PR_SET_NAME
+ uchar *pszDbgHdr;
+ uchar thrdName[32] = "rs:";
+# endif
BEGINfunc
ISOBJ_TYPE_assert(pWti, wti);