From f6e0ec6e2df64ce90e3a52a3e636f3ffb5c38927 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 3 Aug 2005 09:11:06 +0000 Subject: fix --- example/hello_ll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/hello_ll.c') diff --git a/example/hello_ll.c b/example/hello_ll.c index 9f70865..3a6ea09 100644 --- a/example/hello_ll.c +++ b/example/hello_ll.c @@ -78,7 +78,7 @@ static void dirbuf_add(struct dirbuf *b, const char *name, fuse_ino_t ino) struct stat stbuf; size_t oldsize = b->size; b->size += fuse_dirent_size(strlen(name)); - b->p = realloc(b->p, b->size); + b->p = (char *) realloc(b->p, b->size); memset(&stbuf, 0, sizeof(stbuf)); stbuf.st_ino = ino; fuse_add_dirent(b->p + oldsize, name, &stbuf, b->size); -- cgit v1.2.3