summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-13 00:40:57 +0200
committerGünther Deschner <gd@samba.org>2008-10-13 00:40:57 +0200
commitd5a11f9679be9d053838074f1dad5a0ca880750f (patch)
treec9c02cd0c832774a563044fd21b6b20b6131b921 /lib/util
parentf97d92ccbc1779f88a76703f2f83db170cf1abaf (diff)
downloadsamba-d5a11f9679be9d053838074f1dad5a0ca880750f.tar.gz
samba-d5a11f9679be9d053838074f1dad5a0ca880750f.tar.bz2
samba-d5a11f9679be9d053838074f1dad5a0ca880750f.zip
fix build warnings.
Guenther
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;