* [Qemu-devel] [PATCH] linux-user: Replace deprecated function
@ 2011-05-07 20:32 Stefan Weil
2011-05-08 12:03 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2011-05-07 20:32 UTC (permalink / raw)
To: QEMU Developers; +Cc: qemu-trivial, Riku Voipio
Function bzero is deprecated, so replace it by function memset.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
linux-user/syscall.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 279cef3..6e7d88e 100644
--- 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);
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] linux-user: Replace deprecated function
2011-05-07 20:32 [Qemu-devel] [PATCH] linux-user: Replace deprecated function Stefan Weil
@ 2011-05-08 12:03 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2011-05-08 12:03 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-trivial, Riku Voipio, QEMU Developers
On Sat, May 07, 2011 at 10:32:25PM +0200, Stefan Weil wrote:
> Function bzero is deprecated, so replace it by function memset.
>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
> ---
> linux-user/syscall.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks, applied to the trivial-patches branch:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches
For more information see http://wiki.qemu.org/Contribute/TrivialPatches.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-08 12:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-07 20:32 [Qemu-devel] [PATCH] linux-user: Replace deprecated function Stefan Weil
2011-05-08 12:03 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).