diff options
author | wollman <wollman@FreeBSD.org> | 2009-11-25 04:53:38 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 2009-11-25 04:53:38 +0000 |
commit | b9acef29825e46c891a2f4baccde0ff64409e5e9 (patch) | |
tree | d0694f6b8e2f7454ec30195d6d324ee9dc7f52f5 /lib/libc/rpc | |
parent | 9d981856ee4aad156fa0d3449733e6a974130e44 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | lib/libc/rpc/getrpcent.c | 2 |
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); |