diff options
author | Keisuke Nishida <kxn30@po.cwru.edu> | 2001-04-12 01:40:21 +0000 |
---|---|---|
committer | Keisuke Nishida <kxn30@po.cwru.edu> | 2001-04-12 01:40:21 +0000 |
commit | f22ed5a028272f64f26f306701e1ecb470597862 (patch) | |
tree | 1cb8690a53377604230a5fdd0b71b4e13e77efca /libguile/debug-malloc.c | |
parent | a58c0d5f51a5c4418cb200e384cfd698a0025abb (diff) | |
download | guile-f22ed5a028272f64f26f306701e1ecb470597862.tar.gz |
Use memset instead of bzero.
Diffstat (limited to 'libguile/debug-malloc.c')
-rw-r--r-- | libguile/debug-malloc.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libguile/debug-malloc.c b/libguile/debug-malloc.c index 8b2a08ceb..b3c5133d0 100644 --- a/libguile/debug-malloc.c +++ b/libguile/debug-malloc.c @@ -116,10 +116,6 @@ static hash_entry_t *malloc_object = 0; } \ while (0) -#ifdef MISSING_BZERO_DECL -extern void bzero (void *, size_t); -#endif - static void grow (hash_entry_t **table, int *size) { @@ -132,7 +128,7 @@ grow (hash_entry_t **table, int *size) again: TABLE (new) = realloc (TABLE (new), sizeof (hash_entry_t) * (SIZE (new) + N_SEEK)); - bzero (TABLE (new), sizeof (hash_entry_t) * (SIZE (new) + N_SEEK)); + memset (TABLE (new), 0, sizeof (hash_entry_t) * (SIZE (new) + N_SEEK)); for (i = 0; i < oldsize; ++i) if (oldtable[i].key) { @@ -249,10 +245,10 @@ scm_debug_malloc_prehistory () { malloc_type = malloc (sizeof (hash_entry_t) * (malloc_type_size + N_SEEK)); - bzero (malloc_type, sizeof (hash_entry_t) * (malloc_type_size + N_SEEK)); + memset (malloc_type, 0, sizeof (hash_entry_t) * (malloc_type_size + N_SEEK)); malloc_object = malloc (sizeof (hash_entry_t) * (malloc_object_size + N_SEEK)); - bzero (malloc_object, sizeof (hash_entry_t) * (malloc_object_size + N_SEEK)); + memset (malloc_object, 0, sizeof (hash_entry_t) * (malloc_object_size + N_SEEK)); } void |