From 64c63a3e1ca7206cb3bb11ff6c8c206bb9a00444 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 14 Feb 2011 20:56:09 +0100 Subject: s3: Fix a C++ warning Autobuild-User: Volker Lendecke Autobuild-Date: Mon Feb 14 21:44:55 CET 2011 on sn-devel-104 --- source3/libsmb/smb_share_modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/libsmb/smb_share_modes.c b/source3/libsmb/smb_share_modes.c index e752f618a4..bf3250bab4 100644 --- a/source3/libsmb/smb_share_modes.c +++ b/source3/libsmb/smb_share_modes.c @@ -272,7 +272,7 @@ static uint32_t smb_name_hash(const char *sharepath, const char *filename, int * uint32_t name_hash; *err = 0; - fullpath = malloc(sharepath_size + filename_size + 2); + fullpath = (char *)malloc(sharepath_size + filename_size + 2); if (fullpath == NULL) { *err = 1; return 0; -- cgit