summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/xfile.c4
1 files changed, 2 insertions, 2 deletions
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;