summaryrefslogtreecommitdiff
path: root/lib/libc/rpc
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-03-15 23:32:06 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-03-15 23:32:06 +0000
commit9492324abba6df221b85188a430de8470c88e34f (patch)
tree7a2e1eea5fb03f2bb7e3f92d2fb614445d21b8e2 /lib/libc/rpc
parent2cb32ab3ffd84b876c7aaa009ad3d63f5e952c65 (diff)
- correct include file (from david leonard, pr 4147)
- r_number is type int, not long - lessen display indent to avoid line split ok deraadt@ millert@
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r--lib/libc/rpc/getrpcent.38
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/rpc/getrpcent.3 b/lib/libc/rpc/getrpcent.3
index 8b815d21325..56e16eed864 100644
--- a/lib/libc/rpc/getrpcent.3
+++ b/lib/libc/rpc/getrpcent.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getrpcent.3,v 1.9 2003/05/30 22:12:43 jmc Exp $
+.\" $OpenBSD: getrpcent.3,v 1.10 2005/03/15 23:32:05 jmc Exp $
.\"
.\" Sun RPC is a product of Sun Microsystems, Inc. and is provided for
.\" unrestricted use provided that this legend is included on all tape
@@ -38,7 +38,7 @@
.Nm setrpcent
.Nd get RPC entry
.Sh SYNOPSIS
-.Fd #include <netdb.h>
+.Fd #include <rpc/rpc.h>
.Ft struct rpcent *
.Fn getrpcent void
.Ft struct rpcent *
@@ -59,11 +59,11 @@ following structure
containing the broken-out
fields of a line in the rpc program number database,
.Pa /etc/rpc :
-.Bd -literal -offset indent
+.Bd -literal -offset 2n
struct rpcent {
char *r_name; /* name of server for this rpc program */
char **r_aliases; /* alias list */
- long r_number; /* rpc program number */
+ int r_number; /* rpc program number */
};
.Ed
.Pp