소스 검색

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>
 
-libc_hidden_proto(bzero)
+libc_hidden_proto(memset)
 
 /* Clear memory.  Can't alias to bzero because it's not defined in the
    same translation unit.  */
 void
 __aeabi_memclr (void *dest, size_t n)
 {
-  bzero (dest, n);
+  memset (dest, 0, n);
 }
 
 /* Versions of the above which may assume memory alignment.  */