From 8a2e7a52c0ec6b2e5262816f61708589f29bdaeb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 9 Nov 2007 14:23:16 +0100 Subject: nss_wrapper: Fix some warnings (This used to be commit b401450e8409c19d12d944c61e5553ed3334bc11) --- source3/lib/nss_wrapper/nss_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/nss_wrapper/nss_wrapper.c') diff --git a/source3/lib/nss_wrapper/nss_wrapper.c b/source3/lib/nss_wrapper/nss_wrapper.c index 5bf7ebda4f..5d443facd3 100644 --- a/source3/lib/nss_wrapper/nss_wrapper.c +++ b/source3/lib/nss_wrapper/nss_wrapper.c @@ -239,7 +239,7 @@ static bool nwrap_parse_file(struct nwrap_cache *nwrap) goto failed; } - buf = malloc(nwrap->st.st_size + 1); + buf = (uint8_t *)malloc(nwrap->st.st_size + 1); if (!buf) { NWRAP_ERROR(("%s: malloc failed\n",__location__)); goto failed; -- cgit