summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2016-03-03 13:53:38 -0500
committerSteve Dickson <steved@redhat.com>2016-03-03 14:18:30 -0500
commit0d4cc7cdc686aa5ef35336f627b09e08b95d52e6 (patch)
treee9eb1156e2f686ccfc7ca3f6c422d474af52c677 /src
parent2d38a54bfac5752673c7185c5049daba23425dd7 (diff)
downloadti-rpc-0d4cc7cdc686aa5ef35336f627b09e08b95d52e6.tar.gz
makefd_xprt: remove obsolete check for fd number
makefd_xprt() checks that the filedesriptor is lower than FD_SETSIZE. But with tirpc now using poll(), this limitation does not exist anymore. Remove the check completly. Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/svc_vc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/svc_vc.c b/src/svc_vc.c
index 6ae613d..7415244 100644
--- a/src/svc_vc.c
+++ b/src/svc_vc.c
@@ -270,14 +270,8 @@ makefd_xprt(fd, sendsize, recvsize)
struct cf_conn *cd;
const char *netid;
struct __rpc_sockinfo si;
-
- assert(fd != -1);
- if (fd >= FD_SETSIZE) {
- warnx("svc_vc: makefd_xprt: fd too high\n");
- xprt = NULL;
- goto done;
- }
+ assert(fd != -1);
xprt = mem_alloc(sizeof(SVCXPRT));
if (xprt == NULL) {