From: Keir Fraser Date: Thu, 12 Mar 2009 08:34:07 +0000 (+0000) Subject: libxc: Replace bzero() usage with memset(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13992^2~111 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a2de1cf0f8bad7ddab23a3ad8875f904dc0ce762;p=xen.git libxc: Replace bzero() usage with memset(). Signed-off-by: Keir Fraser --- diff --git a/tools/libxc/xc_ptrace_core.c b/tools/libxc/xc_ptrace_core.c index 1e8dfe0535..a159591c4d 100644 --- a/tools/libxc/xc_ptrace_core.c +++ b/tools/libxc/xc_ptrace_core.c @@ -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 --git a/tools/libxc/xg_private.c b/tools/libxc/xg_private.c index 36eb1c7758..4dc3a5c66f 100644 --- a/tools/libxc/xg_private.c +++ b/tools/libxc/xg_private.c @@ -108,7 +108,7 @@ char *xc_inflate_buffer(const char *in_buf, unsigned long in_size, (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 ) {