linux-user: Replace deprecated function
PATCH 1/1 linux-user: Replace deprecated function
Function bzero is deprecated, so replace it by function memset.
Signed-off-by Stefan Weil <[email protected]>
--- linux-user/syscall.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
linux-user/syscall.c +1 -1
@@ -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);
Signature · 1 line
1.7.2.5
Stefan Hajnoczi
AppliedQuoted 6 lines · Stefan Weil
Function bzero is deprecated, so replace it by function memset.
Signed-off-by Stefan Weil <[email protected]>--- 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