libxc: Replace bzero() usage with memset().
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Mar 2009 08:34:07 +0000 (08:34 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 12 Mar 2009 08:34:07 +0000 (08:34 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/libxc/xc_ptrace_core.c
tools/libxc/xg_private.c

index 1e8dfe0535914277a7541475c7d43b942b81b8b8..a159591c4ddf0cea4a8a5f840547e1065a9dcf00 100644 (file)
@@ -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;
index 36eb1c7758be13fb6a1c5a24c429e14bb6f43bd5..4dc3a5c66f7fdb8b5404b58d28c5b8170ea9460e 100644 (file)
@@ -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 )
     {