From d7f6887db1d8636b06229571ab22520a61fd1396 Mon Sep 17 00:00:00 2001 From: pfg Date: Fri, 26 Feb 2016 23:25:21 +0000 Subject: 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 --- lib/libc/rpc/getrpcent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/rpc/getrpcent.c') 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; -- cgit v1.1