mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 16:50:07 +00:00
Use struct assignment instead of memcpy to let the compiler use
whatever it regards as optimal.
This commit is contained in:
parent
fa94f8a58a
commit
2645f7aaad
@ -29,7 +29,7 @@ xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
|
||||
/* Nothing to do. The struct is in the form the kernel expects.
|
||||
We should have short-circuted before we got here, but for
|
||||
completeness... */
|
||||
memcpy ((struct kernel_stat *) ubuf, kbuf, sizeof (*kbuf));
|
||||
*(struct kernel_stat *) ubuf = *kbuf;
|
||||
break;
|
||||
|
||||
case _STAT_VER_GLIBC2:
|
||||
|
Loading…
Reference in New Issue
Block a user