From 9c0be883f40880366241e5953cfa36f20f3c3fc4 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 11 Jun 2007 19:55:50 +0200 Subject: inotail.c: Fix stupid data type error in emalloc() --- inotail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inotail.c b/inotail.c index 2144d6a..480e60f 100644 --- a/inotail.c +++ b/inotail.c @@ -64,9 +64,9 @@ static const struct option long_opts[] = { { NULL, 0, NULL, 0 } }; -static char *emalloc(size_t size) +static void *emalloc(size_t size) { - char *ret = malloc(size); + void *ret = malloc(size); if (unlikely(!ret)) { fprintf(stderr, "Error: Failed to allocate %d bytes of memory (%s)\n", size, strerror(errno)); -- cgit v1.2.3-54-g00ecf