summaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/rpc/rpcent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rpc/rpcent.h b/include/rpc/rpcent.h
index 405ba67..c1650fa 100644
--- a/include/rpc/rpcent.h
+++ b/include/rpc/rpcent.h
@@ -56,7 +56,7 @@ __BEGIN_DECLS
* These interfaces are currently implemented through nsswitch and are
* MT-safe.
*/
-extern struct rpcent *getrpcbyname(char *);
+extern struct rpcent *getrpcbyname(const char *);
extern struct rpcent *getrpcbynumber(int);
extern struct rpcent *getrpcent(void);
extern void setrpcent(int);
OpenPOWER on IntegriCloud