瀏覽代碼

Use memset instead of bzero

Peter S. Mazinger 20 年之前
父節點
當前提交
c1c1a4f9cd
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libc/sysdeps/linux/arm/aeabi_memclr.c

+ 2 - 2
libc/sysdeps/linux/arm/aeabi_memclr.c

@@ -18,14 +18,14 @@
 
 
 #include <string.h>
 #include <string.h>
 
 
-libc_hidden_proto(bzero)
+libc_hidden_proto(memset)
 
 
 /* Clear memory.  Can't alias to bzero because it's not defined in the
 /* Clear memory.  Can't alias to bzero because it's not defined in the
    same translation unit.  */
    same translation unit.  */
 void
 void
 __aeabi_memclr (void *dest, size_t n)
 __aeabi_memclr (void *dest, size_t n)
 {
 {
-  bzero (dest, n);
+  memset (dest, 0, n);
 }
 }
 
 
 /* Versions of the above which may assume memory alignment.  */
 /* Versions of the above which may assume memory alignment.  */