[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 22/24] linux-user: Replace deprecated function
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 22/24] linux-user: Replace deprecated function |
Date: |
Sun, 8 May 2011 17:05:17 +0100 |
From: Stefan Weil <address@hidden>
Function bzero is deprecated, so replace it by function memset.
Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
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.4.4
- [Qemu-devel] [PATCH 19/24] Fix typos in comment (threshhold -> threshold, mapp -> map), (continued)
- [Qemu-devel] [PATCH 19/24] Fix typos in comment (threshhold -> threshold, mapp -> map), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 21/24] Fix spelling in comments (intruction -> instruction), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 12/24] Fix typos in comments (interupt -> interrupt), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 18/24] Fix typo in comment (truely -> truly), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 13/24] Fix typos in comments (instanciation -> instantiation), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 16/24] Fix typo in comment (relevent -> relevant), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 02/24] Fix typos in comments (dependancy -> dependency), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 10/24] Fix typos in comments (imediately -> immediately), Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 24/24] lsi53c895a: Rename 'sense' to 'status', Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 23/24] libcacard: add correct subdirectory dependencies, Stefan Hajnoczi, 2011/05/08
- [Qemu-devel] [PATCH 22/24] linux-user: Replace deprecated function,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 01/24] Fix typo in code and comments, Stefan Hajnoczi, 2011/05/08
- Re: [Qemu-devel] [PULL] Trivial patches for April 26 to May 8 2011, Paolo Bonzini, 2011/05/12
- Re: [Qemu-devel] [PULL] Trivial patches for April 26 to May 8 2011, Anthony Liguori, 2011/05/12