From b306439636ee51df113e630fcd11ecabe60f1e77 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Sat, 14 Oct 2006 19:55:15 +0000 Subject: [PATCH] Update for the read_whole_file -> read_file change. --- misc/metainfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/metainfo.c b/misc/metainfo.c index c69f64b..a68a5dc 100644 --- a/misc/metainfo.c +++ b/misc/metainfo.c @@ -376,10 +376,10 @@ mi_test(const char *p, size_t size) char * mi_load(const char *path, size_t *size) { - void *res = NULL; + char *res; size_t mi_size = (1 << 21); - if ((errno = read_whole_file(&res, &mi_size, path)) != 0) + if ((res = read_file(path, NULL, &mi_size)) == NULL) return NULL; if (!mi_test(res, mi_size)) { free(res);