summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--support/include/rpcmisc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/include/rpcmisc.h b/support/include/rpcmisc.h
index 1b8f411..c5847fa 100644
--- a/support/include/rpcmisc.h
+++ b/support/include/rpcmisc.h
@@ -60,12 +60,12 @@ extern int _rpcsvcdirty;
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 */