Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/common/nfsrpc use the proper fd_set.
details: https://anonhg.NetBSD.org/src/rev/a96b0009d76e
branches: trunk
changeset: 785239:a96b0009d76e
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 05 16:54:08 2013 +0000
description:
use the proper fd_set.
XXX: Instead of making a copy of the libc rpc files here we should re-use the
files from libc, and use macros to provide the extra functionality needed here.
SoC project?
diffstat:
tests/fs/common/nfsrpc/svc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r dba22f511c77 -r a96b0009d76e tests/fs/common/nfsrpc/svc.c
--- a/tests/fs/common/nfsrpc/svc.c Tue Mar 05 16:29:09 2013 +0000
+++ b/tests/fs/common/nfsrpc/svc.c Tue Mar 05 16:54:08 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svc.c,v 1.5 2013/03/05 05:39:54 christos Exp $ */
+/* $NetBSD: svc.c,v 1.6 2013/03/05 16:54:08 christos Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
static char *sccsid = "@(#)svc.c 1.44 88/02/08 Copyr 1984 Sun Micro";
static char *sccsid = "@(#)svc.c 2.4 88/08/11 4.0 RPCSRC";
#else
-__RCSID("$NetBSD: svc.c,v 1.5 2013/03/05 05:39:54 christos Exp $");
+__RCSID("$NetBSD: svc.c,v 1.6 2013/03/05 16:54:08 christos Exp $");
#endif
#endif
@@ -204,7 +204,7 @@
goto out;
}
__svc_xports[sock] = xprt;
- FD_SET(sock, &svc_fdset);
+ FD_SET(sock, get_fdset());
*get_fdsetmax() = max(*get_fdsetmax(), sock);
rwlock_unlock(&svc_fd_lock);
return (TRUE);
Home |
Main Index |
Thread Index |
Old Index