Use struct assignment instead of memcpy to let the compiler use

whatever it regards as optimal.
This commit is contained in:
Ulrich Drepper 1997-11-11 23:54:33 +00:00
parent fa94f8a58a
commit 2645f7aaad

View File

@ -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: