From: Ulrich Drepper Date: Tue, 11 Nov 1997 23:54:33 +0000 (+0000) Subject: Use struct assignment instead of memcpy to let the compiler use X-Git-Tag: glibc-2.16-ports-before-merge~3378 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2645f7aaad48d904f2efb503aeaabf0afa50fa01;p=thirdparty%2Fglibc.git Use struct assignment instead of memcpy to let the compiler use whatever it regards as optimal. --- diff --git a/sysdeps/unix/sysv/linux/alpha/xstatconv.c b/sysdeps/unix/sysv/linux/alpha/xstatconv.c index d1005e73023..cb0269b8af8 100644 --- a/sysdeps/unix/sysv/linux/alpha/xstatconv.c +++ b/sysdeps/unix/sysv/linux/alpha/xstatconv.c @@ -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: