Patchwork [22/24] linux-user: Replace deprecated function

login
register
mail settings
Submitter Stefan Hajnoczi
Date May 8, 2011, 4:05 p.m.
Message ID <1304870719-20885-23-git-send-email-stefanha@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/94583/
State New
Headers show

Comments

Stefan Hajnoczi - May 8, 2011, 4:05 p.m.
From: Stefan Weil <weil@mail.berlios.de>

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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);