git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix build warnings.
[samba.git]
/
lib
/
util
/
xfile.c
diff --git
a/lib/util/xfile.c
b/lib/util/xfile.c
index 36d56e59ff490f806f6446feb3148b2f3c8b34c7..e8bb811416a34c46a4e44031127666effdbd3754 100644
(file)
--- 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;