summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2005-03-15 23:32:05 +0000
committerjmc <jmc@openbsd.org>2005-03-15 23:32:05 +0000
commit33d0095c3cfa22210687853fe86c14cb9b03bdd5 (patch)
tree322d3ff326d6b3a21f09beae5503bca5f606d4ff /lib/libc
parentremove package list. it has been a pain to maintain for years. simply (diff)
downloadwireguard-openbsd-33d0095c3cfa22210687853fe86c14cb9b03bdd5.tar.xz
wireguard-openbsd-33d0095c3cfa22210687853fe86c14cb9b03bdd5.zip
- 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')
-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