From 7d0ebc1976652c8ef8cfc5b0151342f95079d5a2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 6 Apr 2008 12:26:15 +0200 Subject: Fix a C++ warning (This used to be commit c274fe7d21badb42ca8d4d1115ae6bffdb19485f) --- source3/nsswitch/winbind_nss_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch/winbind_nss_linux.c') diff --git a/source3/nsswitch/winbind_nss_linux.c b/source3/nsswitch/winbind_nss_linux.c index b59c0021c2..c11c18759e 100644 --- a/source3/nsswitch/winbind_nss_linux.c +++ b/source3/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; } -- cgit