summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/getrpcent.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2009-11-25 04:53:38 +0000
committerwollman <wollman@FreeBSD.org>2009-11-25 04:53:38 +0000
commitb9acef29825e46c891a2f4baccde0ff64409e5e9 (patch)
treed0694f6b8e2f7454ec30195d6d324ee9dc7f52f5 /lib/libc/rpc/getrpcent.c
parent9d981856ee4aad156fa0d3449733e6a974130e44 (diff)
downloadFreeBSD-src-b9acef29825e46c891a2f4baccde0ff64409e5e9.zip
FreeBSD-src-b9acef29825e46c891a2f4baccde0ff64409e5e9.tar.gz
Style: use structure assignment rather than memcpy() to copy a
structure.
Diffstat (limited to 'lib/libc/rpc/getrpcent.c')
-rw-r--r--lib/libc/rpc/getrpcent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/rpc/getrpcent.c b/lib/libc/rpc/getrpcent.c
index abee480..1f198fa 100644
--- a/lib/libc/rpc/getrpcent.c
+++ b/lib/libc/rpc/getrpcent.c
@@ -698,7 +698,7 @@ rpc_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap,
return (NS_RETURN);
}
- memcpy(&new_rpc, rpc, sizeof(struct rpcent));
+ new_rpc = *rpc;
*buffer_size = desired_size;
memset(buffer, 0, desired_size);
OpenPOWER on IntegriCloud