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;