projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ba1854
)
linux-user: Replace deprecated function
author
Stefan Weil
<weil@mail.berlios.de>
Sat, 7 May 2011 20:32:25 +0000
(22:32 +0200)
committer
Stefan Hajnoczi
<stefanha@linux.vnet.ibm.com>
Sun, 8 May 2011 09:59:21 +0000
(10:59 +0100)
Function bzero is deprecated, so replace it by function memset.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
linux-user/syscall.c
patch
|
blob
|
history
diff --git
a/linux-user/syscall.c
b/linux-user/syscall.c
index
279cef3
..
6e7d88e
100644
(file)
--- a/
linux-user/syscall.c
+++ b/
linux-user/syscall.c
@@
-287,7
+287,7
@@
static int sys_uname(struct new_utsname *buf)
* struct linux kernel uses).
*/
-
bzero(buf, sizeof
(*buf));
+
memset(buf, 0, sizeof
(*buf));
COPY_UTSNAME_FIELD(buf->sysname, uts_buf.sysname);
COPY_UTSNAME_FIELD(buf->nodename, uts_buf.nodename);
COPY_UTSNAME_FIELD(buf->release, uts_buf.release);