From: Volker Lendecke Date: Sun, 6 Apr 2008 10:26:15 +0000 (+0200) Subject: Fix a C++ warning X-Git-Tag: samba-3.3.0pre1~2895 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c274fe7d21badb42ca8d4d1115ae6bffdb19485f;p=thirdparty%2Fsamba.git Fix a C++ warning --- 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; }