diff options
Diffstat (limited to 'meta/recipes-devtools/unfs3/unfs3/0001-daemon.c-Libtirpc-porting-fixes.patch')
-rw-r--r-- | meta/recipes-devtools/unfs3/unfs3/0001-daemon.c-Libtirpc-porting-fixes.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/unfs3/unfs3/0001-daemon.c-Libtirpc-porting-fixes.patch b/meta/recipes-devtools/unfs3/unfs3/0001-daemon.c-Libtirpc-porting-fixes.patch new file mode 100644 index 0000000000..6eee6748f9 --- /dev/null +++ b/meta/recipes-devtools/unfs3/unfs3/0001-daemon.c-Libtirpc-porting-fixes.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From c7a2a65d6c2a433312540c207860740d6e4e7629 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 11 Mar 2018 17:32:54 -0700 | ||
4 | Subject: [PATCH] daemon.c: Libtirpc porting fixes | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | Upstream-Status: Pending | ||
9 | |||
10 | daemon.c | 4 ++-- | ||
11 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/daemon.c b/daemon.c | ||
14 | index 22f30f6..028a181 100644 | ||
15 | --- a/daemon.c | ||
16 | +++ b/daemon.c | ||
17 | @@ -117,7 +117,7 @@ void logmsg(int prio, const char *fmt, ...) | ||
18 | */ | ||
19 | struct in_addr get_remote(struct svc_req *rqstp) | ||
20 | { | ||
21 | - return (svc_getcaller(rqstp->rq_xprt))->sin_addr; | ||
22 | + return ((struct sockaddr_in*)svc_getcaller(rqstp->rq_xprt))->sin_addr; | ||
23 | } | ||
24 | |||
25 | /* | ||
26 | @@ -125,7 +125,7 @@ struct in_addr get_remote(struct svc_req *rqstp) | ||
27 | */ | ||
28 | short get_port(struct svc_req *rqstp) | ||
29 | { | ||
30 | - return (svc_getcaller(rqstp->rq_xprt))->sin_port; | ||
31 | + return ((struct sockaddr_in*)svc_getcaller(rqstp->rq_xprt))->sin_port; | ||
32 | } | ||
33 | |||
34 | /* | ||
35 | -- | ||
36 | 2.16.2 | ||
37 | |||