(xdrproc_t)xdr_##res_type, sizeof(res_type), \
}
-
+void nfs_svc_unregister(const rpcprog_t program,
+ const rpcvers_t version);
+unsigned int nfs_svc_create(char *name, const rpcprog_t program,
+ const rpcvers_t version,
+ void (*dispatch)(struct svc_req *, SVCXPRT *),
+ const uint16_t port);
void rpc_init(char *name, int prog, int vers,
void (*dispatch)(struct svc_req *, SVCXPRT *),
int defport);
static inline struct sockaddr_in *nfs_getrpccaller_in(SVCXPRT *xprt)
{
- return (struct sockaddr_in *)svc_getcaller(xprt);
+ return (struct sockaddr_in *)(char *)svc_getcaller(xprt);
}
static inline struct sockaddr *nfs_getrpccaller(SVCXPRT *xprt)
{
- return (struct sockaddr *)svc_getcaller(xprt);
+ return (struct sockaddr *)(char *)svc_getcaller(xprt);
}
#endif /* RPCMISC_H */