summaryrefslogtreecommitdiff
path: root/tirpc/rpc
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-02-12 10:00:45 -0500
committerSteve Dickson <steved@redhat.com>2013-02-12 10:01:33 -0500
commit5a7ec95a719e658568643d01a9dee888cf903033 (patch)
tree5e21deae76ac8c2e2734878549922ed91c9ce873 /tirpc/rpc
parentee765e67f88cdae4cc04f46472f3d2fb6c9f2246 (diff)
downloadti-rpc-5a7ec95a719e658568643d01a9dee888cf903033.tar.gz
rpcent: mark getrpcbyname name argument as const char *
This allows to match the glibc prototype and avoid compiling error when building libtirpc against a C library that has RPC support. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tirpc/rpc')
-rw-r--r--tirpc/rpc/rpcent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h
index 5a0c3cf..c865e51 100644
--- a/tirpc/rpc/rpcent.h
+++ b/tirpc/rpc/rpcent.h
@@ -55,7 +55,7 @@ struct rpcent {
};
/* Old interfaces that return a pointer to a static area; MT-unsafe */
-extern struct rpcent *getrpcbyname(char *);
+extern struct rpcent *getrpcbyname(const char *);
extern struct rpcent *getrpcbynumber(int);
extern struct rpcent *getrpcent(void);
#endif