projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa94f8a
)
Use struct assignment instead of memcpy to let the compiler use
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 11 Nov 1997 23:54:33 +0000
(23:54 +0000)
committer
Ulrich 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
patch
|
blob
|
history
diff --git
a/sysdeps/unix/sysv/linux/alpha/xstatconv.c
b/sysdeps/unix/sysv/linux/alpha/xstatconv.c
index
d1005e7
..
cb0269b
100644
(file)
--- 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: