summaryrefslogtreecommitdiff
path: root/plugins/imudp
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2012-10-23 00:53:27 +0200
committerMichael Biebl <biebl@debian.org>2012-10-23 00:53:27 +0200
commit30d3515e017ba4b2d74c55c2ad7b897b8a9eb020 (patch)
tree4a4a004202652e61d4c9a7dd3f8597321377856c /plugins/imudp
parent9e3cfcd680648a9905180bcc01b1d61522c5666f (diff)
downloadrsyslog-30d3515e017ba4b2d74c55c2ad7b897b8a9eb020.tar.gz
Imported Upstream version 7.2.0upstream/7.2.0
Diffstat (limited to 'plugins/imudp')
-rw-r--r--plugins/imudp/imudp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c
index 0dda30e..782d7be 100644
--- a/plugins/imudp/imudp.c
+++ b/plugins/imudp/imudp.c
@@ -574,7 +574,7 @@ rsRetVal rcvMainLoop(thrdInfo_t *pThrd)
for(lstn = lcnfRoot ; lstn != NULL ; lstn = lstn->next) {
if(lstn->sock != -1) {
udpEPollEvt[i].events = EPOLLIN | EPOLLET;
- udpEPollEvt[i].data.u64 = (long long unsigned) lstn;
+ udpEPollEvt[i].data.ptr = lstn;
if(epoll_ctl(efd, EPOLL_CTL_ADD, lstn->sock, &(udpEPollEvt[i])) < 0) {
rs_strerror_r(errno, errStr, sizeof(errStr));
errmsg.LogError(errno, NO_ERRCODE, "epoll_ctrl failed on fd %d with %s\n",
@@ -593,7 +593,7 @@ rsRetVal rcvMainLoop(thrdInfo_t *pThrd)
break; /* terminate input! */
for(i = 0 ; i < nfds ; ++i) {
- processSocket(pThrd, (struct lstn_s*)currEvt[i].data.u64, &frominetPrev, &bIsPermitted);
+ processSocket(pThrd, currEvt[i].data.ptr, &frominetPrev, &bIsPermitted);
}
}