summaryrefslogtreecommitdiffstats
path: root/plugins/imudp/imudp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-19 09:32:58 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-19 09:32:58 +0200
commit16e3921905bb0b3f48b0b387e750d0f40439d634 (patch)
treec14bcb440f4cd0efffe34d7cc9edbe9bae138d74 /plugins/imudp/imudp.c
parentd4690ae053b1b26fd215485f08875d508d7c4eba (diff)
parentd36407c7947ba119c971427e1528122509bf895f (diff)
downloadrsyslog-16e3921905bb0b3f48b0b387e750d0f40439d634.tar.gz
rsyslog-16e3921905bb0b3f48b0b387e750d0f40439d634.tar.xz
rsyslog-16e3921905bb0b3f48b0b387e750d0f40439d634.zip
Merge branch 'v5-stable' into v6-stable
Conflicts: runtime/nsdpoll_ptcp.c
Diffstat (limited to 'plugins/imudp/imudp.c')
-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 8ab3b9be..92fe61da 100644
--- a/plugins/imudp/imudp.c
+++ b/plugins/imudp/imudp.c
@@ -578,7 +578,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",
@@ -597,7 +597,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);
}
}