From b401450e8409c19d12d944c61e5553ed3334bc11 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 9 Nov 2007 14:23:16 +0100 Subject: [PATCH] nss_wrapper: Fix some warnings --- source/lib/nss_wrapper/nss_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/nss_wrapper/nss_wrapper.c b/source/lib/nss_wrapper/nss_wrapper.c index 5bf7ebda4fe..5d443facd3e 100644 --- a/source/lib/nss_wrapper/nss_wrapper.c +++ b/source/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; -- 2.11.4.GIT