diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2007-06-11 19:55:50 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2007-06-11 19:55:50 +0200 |
commit | 9c0be883f40880366241e5953cfa36f20f3c3fc4 (patch) | |
tree | 8953c180bcff7cd4a0c774eb36d2d2ae73e07c9d | |
parent | 484f17b6bd0ba570714aa55c67fffa9ae31ae58f (diff) |
inotail.c: Fix stupid data type error in emalloc()
-rw-r--r-- | inotail.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |