summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/getrpcent.c
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-02-26 23:25:21 +0000
committerpfg <pfg@FreeBSD.org>2016-02-26 23:25:21 +0000
commitd7f6887db1d8636b06229571ab22520a61fd1396 (patch)
treee4fbb28288fbd06ba283ad5b183990ebce1ae791 /lib/libc/rpc/getrpcent.c
parent05d67f014967e279a885ee28f306a4292b4b2762 (diff)
downloadFreeBSD-src-d7f6887db1d8636b06229571ab22520a61fd1396.zip
FreeBSD-src-d7f6887db1d8636b06229571ab22520a61fd1396.tar.gz
RPC: update the getrpcbyname() definition to include a const qualifier.
Add const qualifier making getrpcbyname() and getrpcbyname_r() prototypes match those used in latest Sun RPC code (TI-RPC 2.3). Obtained from: NetBSD
Diffstat (limited to 'lib/libc/rpc/getrpcent.c')
-rw-r--r--lib/libc/rpc/getrpcent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/rpc/getrpcent.c b/lib/libc/rpc/getrpcent.c
index 72c5da8..2bfe1ab 100644
--- a/lib/libc/rpc/getrpcent.c
+++ b/lib/libc/rpc/getrpcent.c
@@ -969,7 +969,7 @@ getrpc(int (*fn)(union key, struct rpcent *, char *, size_t, struct rpcent **),
}
struct rpcent *
-getrpcbyname(char *name)
+getrpcbyname(const char *name)
{
union key key;
OpenPOWER on IntegriCloud