diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-08-04 12:15:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:31 -0500 |
commit | 749c8d587c50a8761e6c9a86c2cdafb7a7fc537d (patch) | |
tree | c6759e48cf3910f3b5b9965ed1076b42eb3b689e /source3 | |
parent | 49051067785befb4e549248084f583bdcdc191da (diff) | |
download | samba-749c8d587c50a8761e6c9a86c2cdafb7a7fc537d.tar.gz samba-749c8d587c50a8761e6c9a86c2cdafb7a7fc537d.tar.bz2 samba-749c8d587c50a8761e6c9a86c2cdafb7a7fc537d.zip |
r17399: Some C++ warnings
(This used to be commit d12b08fc619f7b566ef5c4cc7294174e887014fe)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/auth_util.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index b7d3fdfcbd..90ec3ecaab 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -1382,8 +1382,8 @@ static auth_serversupplied_info *copy_serverinfo(auth_serversupplied_info *src) dst->gid = src->gid; dst->n_groups = src->n_groups; if (src->n_groups != 0) { - dst->groups = talloc_memdup(dst, src->groups, - sizeof(gid_t)*dst->n_groups); + dst->groups = (gid_t *)talloc_memdup( + dst, src->groups, sizeof(gid_t)*dst->n_groups); } else { dst->groups = NULL; } @@ -1444,7 +1444,8 @@ BOOL copy_current_user(struct current_user *dst, struct current_user *src) gid_t *groups; NT_USER_TOKEN *nt_token; - groups = memdup(src->ut.groups, sizeof(gid_t) * src->ut.ngroups); + groups = (gid_t *)memdup(src->ut.groups, + sizeof(gid_t) * src->ut.ngroups); if ((src->ut.ngroups != 0) && (groups == NULL)) { return False; } @@ -1470,8 +1471,8 @@ BOOL set_current_user_guest(struct current_user *dst) gid_t *groups; NT_USER_TOKEN *nt_token; - groups = memdup(guest_info->groups, - sizeof(gid_t) * guest_info->n_groups); + groups = (gid_t *)memdup(guest_info->groups, + sizeof(gid_t) * guest_info->n_groups); if (groups == NULL) { return False; } @@ -1937,8 +1938,8 @@ NT_USER_TOKEN *dup_nt_token(TALLOC_CTX *mem_ctx, NT_USER_TOKEN *ptoken) return NULL; } - token->user_sids = talloc_memdup(token, ptoken->user_sids, - sizeof(DOM_SID) * ptoken->num_sids ); + token->user_sids = (DOM_SID *)talloc_memdup( + token, ptoken->user_sids, sizeof(DOM_SID) * ptoken->num_sids ); if ((ptoken->user_sids != NULL) && (token->user_sids == NULL)) { DEBUG(0, ("talloc_memdup failed\n")); |