summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/rpc_dtablesize.c
diff options
context:
space:
mode:
authorjraynard <jraynard@FreeBSD.org>1996-06-10 20:13:09 +0000
committerjraynard <jraynard@FreeBSD.org>1996-06-10 20:13:09 +0000
commit0e3efc7987c3d214da05c649e00c7f72620a96bd (patch)
tree3a4e1682ef16b142e099c2139c0dbb40e61347ee /lib/libc/rpc/rpc_dtablesize.c
parent68b3f1ce70e0dec9ed0b3454f40628b409196f2d (diff)
downloadFreeBSD-src-0e3efc7987c3d214da05c649e00c7f72620a96bd.zip
FreeBSD-src-0e3efc7987c3d214da05c649e00c7f72620a96bd.tar.gz
Code cleanup:
1. Added missing function prototypes. 2. Added missing function return types. 3. Added missing function argument types. 4. Added missing headers for system function prototypes. 5. Corrected format specifier in printf(). 6. Added extra parentheses around assignment used as truth value. 7. Added missing "default" cases in switch statements. 8. Added casts for function pointers. 9. Did *not* change int declarations of uid and gid to uid_t/gid_t because I don't know if that would affect the protocol. Put in explicit casts to int instead, to make things more obvious. 10. Moved declarations of variables that are only used if YP is defined inside the '#ifdef YP' conditionals.
Diffstat (limited to 'lib/libc/rpc/rpc_dtablesize.c')
-rw-r--r--lib/libc/rpc/rpc_dtablesize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/rpc/rpc_dtablesize.c b/lib/libc/rpc/rpc_dtablesize.c
index 6ca511d..330d082 100644
--- a/lib/libc/rpc/rpc_dtablesize.c
+++ b/lib/libc/rpc/rpc_dtablesize.c
@@ -34,6 +34,7 @@ static char *rcsid = "rpc_dtablesize.c,v 1.1 1994/08/07 18:36:02 wollman Exp";
#endif
#include <sys/types.h>
+#include <unistd.h>
/*
* Cache the result of getdtablesize(), so we don't have to do an
@@ -50,7 +51,7 @@ static char *rcsid = "rpc_dtablesize.c,v 1.1 1994/08/07 18:36:02 wollman Exp";
* that. Clamping this function at 256 is a kludge, but it'll have to
* do until select()'s descriptor table size can be adjusted dynamically.
*/
-_rpc_dtablesize()
+int _rpc_dtablesize(void)
{
static int size;
OpenPOWER on IntegriCloud