From 2645f7aaad48d904f2efb503aeaabf0afa50fa01 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 11 Nov 1997 23:54:33 +0000 Subject: [PATCH] Use struct assignment instead of memcpy to let the compiler use whatever it regards as optimal. --- sysdeps/unix/sysv/linux/alpha/xstatconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/alpha/xstatconv.c b/sysdeps/unix/sysv/linux/alpha/xstatconv.c index d1005e7..cb0269b 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: -- 2.7.4