From d8e063bf02446fc53d23e47e440e1f940f2b546f Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 23 Feb 2021 00:45:07 +0700 Subject: [PATCH] tidy: Remove last `caddr_t`. (#365) This cast isn't needed here and `caddr_t` is obsolete / not POSIX. --- src/rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc.c b/src/rpc.c index 4b18cc9..d91875a 100644 --- a/src/rpc.c +++ b/src/rpc.c @@ -121,7 +121,7 @@ LispPTR rpc(LispPTR *args) /* Resolve the host address. */ if (hp) { sin1.sin_family = hp->h_addrtype; - memcpy((caddr_t)&sin1.sin_addr, hp->h_addr, hp->h_length); + memcpy(&sin1.sin_addr, hp->h_addr, hp->h_length); } else goto handle_error;