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>
struct rpcent *
getrpcbyname(name)
- char *name;
+ const char *name;
{
struct rpcent *rpc = NULL;
char **rp;
};
/* 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