summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-13 13:02:15 +0100
committerVolker Lendecke <vl@samba.org>2010-02-13 13:24:59 +0100
commitece99c763acdc8a9b98ace4b8b08dfccbb1c9cb3 (patch)
treec0c53c9ab07ae1dd83e900d809fecec4b683d17d
parentf69135e0e985200d62d4618b742bd642ecfdbf31 (diff)
downloadsamba-ece99c763acdc8a9b98ace4b8b08dfccbb1c9cb3.tar.gz
samba-ece99c763acdc8a9b98ace4b8b08dfccbb1c9cb3.tar.bz2
samba-ece99c763acdc8a9b98ace4b8b08dfccbb1c9cb3.zip
s3: Fix a C++ warning
-rw-r--r--source3/smbd/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index f908819d33..54926eb600 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -61,7 +61,7 @@ bool set_conn_connectpath(connection_struct *conn, const char *connectpath)
}
/* Allocate for strlen + '\0' + possible leading '/' */
- destname = SMB_MALLOC(strlen(connectpath) + 2);
+ destname = (char *)SMB_MALLOC(strlen(connectpath) + 2);
if (!destname) {
return false;
}