From: Stefan Weil Date: Sat, 7 May 2011 20:32:25 +0000 (+0200) Subject: linux-user: Replace deprecated function X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~5806^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67bd9edec385b1244c06cce15fe88cc9a9da7097;p=sdk%2Femulator%2Fqemu.git linux-user: Replace deprecated function Function bzero is deprecated, so replace it by function memset. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- 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);