summaryrefslogtreecommitdiff
path: root/source3/smbd/sec_ctx.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-31 21:40:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:27 -0500
commit430fa0eba08cbf180d83740a895a0018af1c7f21 (patch)
tree0f51b6635f456a800a7fe609f30fdbd537460ee8 /source3/smbd/sec_ctx.c
parente7952e9c14218d0c8c13973056ab8762876e5a79 (diff)
downloadsamba-430fa0eba08cbf180d83740a895a0018af1c7f21.tar.gz
samba-430fa0eba08cbf180d83740a895a0018af1c7f21.tar.bz2
samba-430fa0eba08cbf180d83740a895a0018af1c7f21.zip
r17348: Some C++ warnings
(This used to be commit ae6b9b34e59167e3958bfdb9997fa25340b9a0a3)
Diffstat (limited to 'source3/smbd/sec_ctx.c')
-rw-r--r--source3/smbd/sec_ctx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c
index 51d1d6cc0a..be00db9adb 100644
--- a/source3/smbd/sec_ctx.c
+++ b/source3/smbd/sec_ctx.c
@@ -259,7 +259,8 @@ void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, NT_USER_TOKEN
TALLOC_FREE(ctx_p->token);
if (ngroups) {
- ctx_p->ut.groups = memdup(groups, sizeof(gid_t) * ngroups);
+ ctx_p->ut.groups = (gid_t *)memdup(groups,
+ sizeof(gid_t) * ngroups);
if (!ctx_p->ut.groups) {
smb_panic("memdup failed");
}