mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
Style: use structure assignment rather than memcpy() to copy a
structure.
This commit is contained in:
parent
bedffadccc
commit
87541d3110
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199787
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user