Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/rpc initialize revents too.
details: https://anonhg.NetBSD.org/src/rev/9bc8e70215cd
branches: trunk
changeset: 341481:9bc8e70215cd
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 07 23:17:09 2015 +0000
description:
initialize revents too.
diffstat:
lib/libc/rpc/svc_fdset.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 72d1251ee07d -r 9bc8e70215cd lib/libc/rpc/svc_fdset.c
--- a/lib/libc/rpc/svc_fdset.c Sat Nov 07 23:16:00 2015 +0000
+++ b/lib/libc/rpc/svc_fdset.c Sat Nov 07 23:17:09 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svc_fdset.c,v 1.9 2015/11/07 23:09:20 christos Exp $ */
+/* $NetBSD: svc_fdset.c,v 1.10 2015/11/07 23:17:09 christos Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: svc_fdset.c,v 1.9 2015/11/07 23:09:20 christos Exp $");
+__RCSID("$NetBSD: svc_fdset.c,v 1.10 2015/11/07 23:17:09 christos Exp $");
#include "reentrant.h"
@@ -156,6 +156,7 @@
for (int i = 0; i < nfd; i++) {
pfd[i].fd = -1;
pfd[i].events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND;
+ pfd[i].revents = 0;
}
}
Home |
Main Index |
Thread Index |
Old Index