]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
libxc: Replace bzero() usage with memset().
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 17 Mar 2009 14:51:45 +0000 (14:51 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 17 Mar 2009 14:51:45 +0000 (14:51 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   19315:75fa5c00a100e843323414c2406f1396f2367195
xen-unstable date:        Thu Mar 12 08:34:07 2009 +0000

tools/libxc/xc_ptrace_core.c
tools/libxc/xg_private.c

index d4bd6bcb1566e9109e10d5af71aa5efc37ba6a78..314ed7a957bc7b3b3aa7f7f2509431880e168966 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 )
     {