summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-09-22 05:11:10 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-09-22 05:11:10 +0000
commit0270cf3de534ebb133e99d67596c9e16e1cdf167 (patch)
treea053858453baed7ccdea13dfa77f07d9feafc32d /lib/libc
parent4c647c64ad12bbd9b186f4e62f9ba0e29874cf85 (diff)
Some -Wall.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/rpc/clnt_tcp.c3
-rw-r--r--lib/libc/rpc/clnt_udp.c3
-rw-r--r--lib/libc/rpc/get_myaddress.c3
-rw-r--r--lib/libc/rpc/getrpcent.c6
-rw-r--r--lib/libc/rpc/pmap_clnt.c3
-rw-r--r--lib/libc/rpc/pmap_getmaps.c3
-rw-r--r--lib/libc/rpc/pmap_getport.c3
-rw-r--r--lib/libc/rpc/rpc_dtablesize.c4
-rw-r--r--lib/libc/rpc/svc.c4
9 files changed, 20 insertions, 12 deletions
diff --git a/lib/libc/rpc/clnt_tcp.c b/lib/libc/rpc/clnt_tcp.c
index ae13ad0ae00..b3efd3123f1 100644
--- a/lib/libc/rpc/clnt_tcp.c
+++ b/lib/libc/rpc/clnt_tcp.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: clnt_tcp.c,v 1.14 1997/04/29 08:52:31 deraadt Exp $";
+static char *rcsid = "$OpenBSD: clnt_tcp.c,v 1.15 1997/09/22 05:11:06 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -52,6 +52,7 @@ static char *rcsid = "$OpenBSD: clnt_tcp.c,v 1.14 1997/04/29 08:52:31 deraadt Ex
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <rpc/rpc.h>
#include <sys/socket.h>
diff --git a/lib/libc/rpc/clnt_udp.c b/lib/libc/rpc/clnt_udp.c
index 866315fb691..f78e5f0976b 100644
--- a/lib/libc/rpc/clnt_udp.c
+++ b/lib/libc/rpc/clnt_udp.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: clnt_udp.c,v 1.12 1997/04/29 08:52:33 deraadt Exp $";
+static char *rcsid = "$OpenBSD: clnt_udp.c,v 1.13 1997/09/22 05:11:06 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -39,6 +39,7 @@ static char *rcsid = "$OpenBSD: clnt_udp.c,v 1.12 1997/04/29 08:52:33 deraadt Ex
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <rpc/rpc.h>
#include <sys/socket.h>
diff --git a/lib/libc/rpc/get_myaddress.c b/lib/libc/rpc/get_myaddress.c
index 3bb0c45faae..6768741bca7 100644
--- a/lib/libc/rpc/get_myaddress.c
+++ b/lib/libc/rpc/get_myaddress.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: get_myaddress.c,v 1.7 1997/01/22 18:50:40 deraadt Exp $";
+static char *rcsid = "$OpenBSD: get_myaddress.c,v 1.8 1997/09/22 05:11:07 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -44,6 +44,7 @@ static char *rcsid = "$OpenBSD: get_myaddress.c,v 1.7 1997/01/22 18:50:40 deraad
#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
diff --git a/lib/libc/rpc/getrpcent.c b/lib/libc/rpc/getrpcent.c
index 5ba8e444dfa..949304faab8 100644
--- a/lib/libc/rpc/getrpcent.c
+++ b/lib/libc/rpc/getrpcent.c
@@ -29,7 +29,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: getrpcent.c,v 1.7 1996/09/15 09:31:35 tholo Exp $";
+static char *rcsid = "$OpenBSD: getrpcent.c,v 1.8 1997/09/22 05:11:07 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -82,7 +82,7 @@ getrpcbynumber(number)
if (d == 0)
return (0);
setrpcent(0);
- while (p = getrpcent()) {
+ while ((p = getrpcent())) {
if (p->r_number == number)
break;
}
@@ -98,7 +98,7 @@ getrpcbyname(name)
char **rp;
setrpcent(0);
- while (rpc = getrpcent()) {
+ while ((rpc = getrpcent())) {
if (strcmp(rpc->r_name, name) == 0)
goto done;
for (rp = rpc->r_aliases; *rp != NULL; rp++) {
diff --git a/lib/libc/rpc/pmap_clnt.c b/lib/libc/rpc/pmap_clnt.c
index 5aadd8d081c..0c7687b7c61 100644
--- a/lib/libc/rpc/pmap_clnt.c
+++ b/lib/libc/rpc/pmap_clnt.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: pmap_clnt.c,v 1.7 1997/07/09 03:05:03 deraadt Exp $";
+static char *rcsid = "$OpenBSD: pmap_clnt.c,v 1.8 1997/09/22 05:11:08 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -38,6 +38,7 @@ static char *rcsid = "$OpenBSD: pmap_clnt.c,v 1.7 1997/07/09 03:05:03 deraadt Ex
* Copyright (C) 1984, Sun Microsystems, Inc.
*/
+#include <unistd.h>
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
diff --git a/lib/libc/rpc/pmap_getmaps.c b/lib/libc/rpc/pmap_getmaps.c
index e49c32a3003..a299b88bffd 100644
--- a/lib/libc/rpc/pmap_getmaps.c
+++ b/lib/libc/rpc/pmap_getmaps.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: pmap_getmaps.c,v 1.5 1997/07/09 03:05:04 deraadt Exp $";
+static char *rcsid = "$OpenBSD: pmap_getmaps.c,v 1.6 1997/09/22 05:11:08 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -46,6 +46,7 @@ static char *rcsid = "$OpenBSD: pmap_getmaps.c,v 1.5 1997/07/09 03:05:04 deraadt
#include <netdb.h>
#include <stdio.h>
#include <errno.h>
+#include <unistd.h>
#include <net/if.h>
#include <sys/ioctl.h>
#define NAMELEN 255
diff --git a/lib/libc/rpc/pmap_getport.c b/lib/libc/rpc/pmap_getport.c
index 651cf265f6c..21c74abd18d 100644
--- a/lib/libc/rpc/pmap_getport.c
+++ b/lib/libc/rpc/pmap_getport.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: pmap_getport.c,v 1.5 1997/07/09 03:05:04 deraadt Exp $";
+static char *rcsid = "$OpenBSD: pmap_getport.c,v 1.6 1997/09/22 05:11:08 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -38,6 +38,7 @@ static char *rcsid = "$OpenBSD: pmap_getport.c,v 1.5 1997/07/09 03:05:04 deraadt
* Copyright (C) 1984, Sun Microsystems, Inc.
*/
+#include <unistd.h>
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
diff --git a/lib/libc/rpc/rpc_dtablesize.c b/lib/libc/rpc/rpc_dtablesize.c
index d4ecdf880a2..070801b2440 100644
--- a/lib/libc/rpc/rpc_dtablesize.c
+++ b/lib/libc/rpc/rpc_dtablesize.c
@@ -28,15 +28,17 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: rpc_dtablesize.c,v 1.4 1996/08/19 08:31:48 tholo Exp $";
+static char *rcsid = "$OpenBSD: rpc_dtablesize.c,v 1.5 1997/09/22 05:11:09 millert Exp $";
#endif /* LIBC_SCCS and not lint */
+#include <unistd.h>
#include <sys/types.h>
/*
* Cache the result of getdtablesize(), so we don't have to do an
* expensive system call every time.
*/
+int
_rpc_dtablesize()
{
static int size;
diff --git a/lib/libc/rpc/svc.c b/lib/libc/rpc/svc.c
index 5d2e657cc15..698570a4548 100644
--- a/lib/libc/rpc/svc.c
+++ b/lib/libc/rpc/svc.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: svc.c,v 1.9 1997/03/29 05:55:06 deraadt Exp $";
+static char *rcsid = "$OpenBSD: svc.c,v 1.10 1997/09/22 05:11:09 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -431,7 +431,7 @@ svc_getreqset2(readfds, width)
maskp = readfds->fds_bits;
for (sock = 0; sock < width; sock += NFDBITS) {
- for (mask = *maskp++; bit = ffs(mask); mask ^= (1 << (bit - 1))) {
+ for (mask = *maskp++; (bit = ffs(mask)); mask ^= (1 << (bit - 1))) {
/* sock has input waiting */
xprt = xports[sock + bit - 1];
if (xprt == NULL)