Use struct assignment instead of memcpy to let the compiler use
authorUlrich Drepper <drepper@redhat.com>
Tue, 11 Nov 1997 23:54:33 +0000 (23:54 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 11 Nov 1997 23:54:33 +0000 (23:54 +0000)
whatever it regards as optimal.

sysdeps/unix/sysv/linux/alpha/xstatconv.c

index d1005e7..cb0269b 100644 (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: