[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxc: Replace bzero() usage with memset().
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1236846847 0 # Node ID 75fa5c00a100e843323414c2406f1396f2367195 # Parent 131c799580cb07b43518b81c9e0872ac5a88c9c8 libxc: Replace bzero() usage with memset(). Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- tools/libxc/xc_ptrace_core.c | 2 +- tools/libxc/xg_private.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -r 131c799580cb -r 75fa5c00a100 tools/libxc/xc_ptrace_core.c --- a/tools/libxc/xc_ptrace_core.c Thu Mar 12 08:32:30 2009 +0000 +++ b/tools/libxc/xc_ptrace_core.c Thu Mar 12 08:34:07 2009 +0000 @@ -154,7 +154,7 @@ xc_waitdomain_core_compat( IPRINTF("Could not allocate m2p array\n"); return -1; } - bzero(m2p_array_compat, sizeof(unsigned long)* 1 << 20); + memset(m2p_array_compat, 0, sizeof(unsigned long)* 1 << 20); for (i = 0; i < nr_pages_compat; i++) m2p_array_compat[p2m_array_compat[i]] = i; diff -r 131c799580cb -r 75fa5c00a100 tools/libxc/xg_private.c --- a/tools/libxc/xg_private.c Thu Mar 12 08:32:30 2009 +0000 +++ b/tools/libxc/xg_private.c Thu Mar 12 08:34:07 2009 +0000 @@ -108,7 +108,7 @@ char *xc_inflate_buffer(const char *in_b (256 * ((unsigned char)in_buf[in_size-2] + (256 * (unsigned char)in_buf[in_size-1]))))); - bzero(&zStream, sizeof(zStream)); + memset(&zStream, 0, sizeof(zStream)); out_buf = malloc(out_len + 16); /* Leave a little extra space */ if ( out_buf == NULL ) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |