From d5a11f9679be9d053838074f1dad5a0ca880750f Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Mon, 13 Oct 2008 00:40:57 +0200 Subject: [PATCH] fix build warnings. Guenther --- lib/util/xfile.c | 4 ++-- source3/libads/ldap.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/util/xfile.c b/lib/util/xfile.c index 36d56e59ff4..e8bb811416a 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; diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index e78465f7da9..fbbe1a546ba 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -801,7 +801,7 @@ static ADS_STATUS ads_do_paged_search_args(ADS_STRUCT *ads, int *count, struct berval **cookie) { int rc, i, version; - char *utf8_expr, *utf8_path, **search_attrs; + char *utf8_expr, *utf8_path, **search_attrs = NULL; size_t converted_size; LDAPControl PagedResults, NoReferrals, ExternalCtrl, *controls[4], **rcontrols; BerElement *cookie_be = NULL; -- 2.34.1