From 262249fdc1ed5467b5c225910dce8fb68404aa99 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 6 Apr 2008 12:26:15 +0200 Subject: [PATCH] Fix a C++ warning (cherry picked from commit c274fe7d21badb42ca8d4d1115ae6bffdb19485f) --- source/nsswitch/winbind_nss_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nsswitch/winbind_nss_linux.c b/source/nsswitch/winbind_nss_linux.c index b59c0021c28..c11c18759e6 100644 --- a/source/nsswitch/winbind_nss_linux.c +++ b/source/nsswitch/winbind_nss_linux.c @@ -147,7 +147,7 @@ static bool next_token_alloc(const char **ptr, } /* We started with len = 1 so we have space for the nul. */ - *pp_buff = malloc(len); + *pp_buff = (char *)malloc(len); if (!*pp_buff) { return false; } -- 2.11.4.GIT