From d5a11f9679be9d053838074f1dad5a0ca880750f Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 13 Oct 2008 00:40:57 +0200 Subject: fix build warnings. Guenther --- lib/util/xfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/util') diff --git a/lib/util/xfile.c b/lib/util/xfile.c index 36d56e59ff..e8bb811416 100644 --- a/lib/util/xfile.c +++ b/lib/util/xfile.c @@ -105,7 +105,7 @@ XFILE *x_fopen(const char *fname, int flags, mode_t mode) { XFILE *ret; - ret = malloc_p(XFILE); + ret = (XFILE *)malloc_p(XFILE); if (!ret) return NULL; memset(ret, 0, sizeof(XFILE)); @@ -403,7 +403,7 @@ XFILE *x_fdup(const XFILE *f) return NULL; } - ret = malloc_p(XFILE); + ret = (XFILE *)malloc_p(XFILE); if (!ret) { close(fd); return NULL; -- cgit