diff options
Diffstat (limited to 'src/kmk/electric.h')
-rw-r--r-- | src/kmk/electric.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kmk/electric.h b/src/kmk/electric.h index eb39082..2983819 100644 --- a/src/kmk/electric.h +++ b/src/kmk/electric.h @@ -1,4 +1,4 @@ -/* $Id: electric.h 2413 2010-09-11 17:43:04Z bird $ */ +/* $Id: electric.h 2591 2012-06-17 20:45:31Z bird $ */ /** @file * A simple electric heap implementation, wrapper header. */ @@ -32,13 +32,13 @@ #include <string.h> /* strdup */ void xfree (void *); -void *xcalloc (size_t, size_t); +void *xcalloc (unsigned int); void *xmalloc (unsigned int); void *xrealloc (void *, unsigned int); char *xstrdup (const char *); #define free(a) xfree(a) -#define calloc(a,b) xcalloc((a),(b)) +#define calloc(a,b) xcalloc((a) * (b)) #define malloc(a) xmalloc(a) #define realloc(a,b) xrealloc((a),(b)) #define strdup(a) xstrdup(a) |