diff options
Diffstat (limited to 'libmisc/xmalloc.c')
-rw-r--r-- | libmisc/xmalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmisc/xmalloc.c b/libmisc/xmalloc.c index 9329e674..25b136a4 100644 --- a/libmisc/xmalloc.c +++ b/libmisc/xmalloc.c @@ -26,11 +26,11 @@ #include "prototypes.h" #include "shadowlog.h" -/*@maynotreturn@*/ /*@only@*//*@out@*//*@notnull@*/char *xmalloc (size_t size) +/*@maynotreturn@*/ /*@only@*//*@out@*//*@notnull@*/void *xmalloc (size_t size) { - char *ptr; + void *ptr; - ptr = (char *) malloc (size); + ptr = malloc (size); if (NULL == ptr) { (void) fprintf (log_get_logfd(), _("%s: failed to allocate memory: %s\n"), |