summaryrefslogtreecommitdiffstats
path: root/utils/gssd/gssd_proc.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2012-08-06 09:08:53 -0400
committerSteve Dickson <steved@redhat.com>2012-08-06 09:11:27 -0400
commit41f32cd96eca95a2730603ebc539440c48a1dda5 (patch)
tree892c0b4b4cb4fc1c4e627aca64c33fe8ff69e067 /utils/gssd/gssd_proc.c
parente4e5dadd7685415059173e438a5710a9e51ffbff (diff)
downloadnfs-utils-41f32cd96eca95a2730603ebc539440c48a1dda5.tar.gz
nfs-utils-41f32cd96eca95a2730603ebc539440c48a1dda5.tar.xz
nfs-utils-41f32cd96eca95a2730603ebc539440c48a1dda5.zip
rpc.gssd: don't call poll(2) twice a second
Use ppoll() instead. [ cel Wed Aug 1 11:44:46 EDT 2012 - autoconfiscated Bruce's version ] Related clean-up: Since we're pulling the poll/ppoll call out into a separate function, note that the second argument of poll(2) and ppoll(2) is not an int, it's an unsigned long. The nfds_t typedef is a recent invention, so use the raw type for compatibility with older glibc headers. Acked-by: J. Bruce Fields" <bfields@redhat.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/gssd/gssd_proc.c')
-rw-r--r--utils/gssd/gssd_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
index 2861d06..e393d59 100644
--- a/utils/gssd/gssd_proc.c
+++ b/utils/gssd/gssd_proc.c
@@ -104,7 +104,7 @@
struct pollfd * pollarray;
-int pollsize; /* the size of pollaray (in pollfd's) */
+unsigned long pollsize; /* the size of pollaray (in pollfd's) */
/*
* convert a presentation address string to a sockaddr_storage struct. Returns