ia64/xen-unstable
changeset 19320:75fa5c00a100
libxc: Replace bzero() usage with memset().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Thu Mar 12 08:34:07 2009 +0000 (2009-03-12) |
parents | 131c799580cb |
children | 8ce14a3bcf05 |
files | tools/libxc/xc_ptrace_core.c tools/libxc/xg_private.c |
line diff
1.1 --- a/tools/libxc/xc_ptrace_core.c Thu Mar 12 08:32:30 2009 +0000 1.2 +++ b/tools/libxc/xc_ptrace_core.c Thu Mar 12 08:34:07 2009 +0000 1.3 @@ -154,7 +154,7 @@ xc_waitdomain_core_compat( 1.4 IPRINTF("Could not allocate m2p array\n"); 1.5 return -1; 1.6 } 1.7 - bzero(m2p_array_compat, sizeof(unsigned long)* 1 << 20); 1.8 + memset(m2p_array_compat, 0, sizeof(unsigned long)* 1 << 20); 1.9 1.10 for (i = 0; i < nr_pages_compat; i++) 1.11 m2p_array_compat[p2m_array_compat[i]] = i;
2.1 --- a/tools/libxc/xg_private.c Thu Mar 12 08:32:30 2009 +0000 2.2 +++ b/tools/libxc/xg_private.c Thu Mar 12 08:34:07 2009 +0000 2.3 @@ -108,7 +108,7 @@ char *xc_inflate_buffer(const char *in_b 2.4 (256 * ((unsigned char)in_buf[in_size-2] + 2.5 (256 * (unsigned char)in_buf[in_size-1]))))); 2.6 2.7 - bzero(&zStream, sizeof(zStream)); 2.8 + memset(&zStream, 0, sizeof(zStream)); 2.9 out_buf = malloc(out_len + 16); /* Leave a little extra space */ 2.10 if ( out_buf == NULL ) 2.11 {