|
@@ -23,7 +23,7 @@ extern unsigned long strtoul ( const char *p, char **endp, int base );
|
23
|
23
|
extern void * malloc ( size_t size );
|
24
|
24
|
extern void * realloc ( void *old_ptr, size_t new_size );
|
25
|
25
|
extern void free ( void *ptr );
|
26
|
|
-extern void * _calloc ( size_t len );
|
|
26
|
+extern void * zalloc ( size_t len );
|
27
|
27
|
|
28
|
28
|
/**
|
29
|
29
|
* Allocate cleared memory
|
|
@@ -35,11 +35,11 @@ extern void * _calloc ( size_t len );
|
35
|
35
|
* Allocate memory as per malloc(), and zero it.
|
36
|
36
|
*
|
37
|
37
|
* This is implemented as a static inline, with the body of the
|
38
|
|
- * function in _calloc(), since in most cases @c nmemb will be 1 and
|
|
38
|
+ * function in zalloc(), since in most cases @c nmemb will be 1 and
|
39
|
39
|
* doing the multiply is just wasteful.
|
40
|
40
|
*/
|
41
|
41
|
static inline void * calloc ( size_t nmemb, size_t size ) {
|
42
|
|
- return _calloc ( nmemb * size );
|
|
42
|
+ return zalloc ( nmemb * size );
|
43
|
43
|
}
|
44
|
44
|
|
45
|
45
|
/*****************************************************************************
|