Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/wpa/dist/src/utils use 0 for udata for portabil...



details:   https://anonhg.NetBSD.org/src/rev/ad774245960e
branches:  trunk
changeset: 343196:ad774245960e
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 24 19:15:56 2016 +0000

description:
use 0 for udata for portability (FreeBSD has a pointer, we have uintptr_t)

diffstat:

 external/bsd/wpa/dist/src/utils/eloop.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 1756263f4f68 -r ad774245960e external/bsd/wpa/dist/src/utils/eloop.c
--- a/external/bsd/wpa/dist/src/utils/eloop.c   Sun Jan 24 18:49:05 2016 +0000
+++ b/external/bsd/wpa/dist/src/utils/eloop.c   Sun Jan 24 19:15:56 2016 +0000
@@ -237,7 +237,7 @@
        default:
                filter = 0;
        }
-       EV_SET(&ke, sock, filter, EV_ADD, 0, 0, NULL);
+       EV_SET(&ke, sock, filter, EV_ADD, 0, 0, 0);
        if (kevent(eloop.kqueuefd, &ke, 1, NULL, 0, NULL) == -1) {
                wpa_printf(MSG_ERROR, "%s: kevent(ADD) for fd=%d "
                           "failed. %s\n", __func__, sock, strerror(errno));
@@ -407,7 +407,7 @@
        os_memset(&eloop.fd_table[sock], 0, sizeof(struct eloop_sock));
 #endif /* CONFIG_ELOOP_EPOLL */
 #ifdef CONFIG_ELOOP_KQUEUE
-       EV_SET(&ke, sock, 0, EV_DELETE, 0, 0, NULL);
+       EV_SET(&ke, sock, 0, EV_DELETE, 0, 0, 0);
        if (kevent(eloop.kqueuefd, &ke, 1, NULL, 0, NULL) == -1) {
                wpa_printf(MSG_ERROR, "%s: kevent(DEL) for fd=%d "
                           "failed. %s\n", __func__, sock, strerror(errno));
@@ -1328,7 +1328,7 @@
        kfd = kqueue();
        if (kfd == -1)
                return;
-       EV_SET(&ke1, sock, EVFILT_READ, EV_ADD | EV_ONESHOT, 0, 0, NULL);
+       EV_SET(&ke1, sock, EVFILT_READ, EV_ADD | EV_ONESHOT, 0, 0, 0);
        kevent(kfd, &ke1, 1, &ke2, 1, NULL);
        close(kfd);
 #endif /* CONFIG_ELOOP_KQUEUE */



Home | Main Index | Thread Index | Old Index