summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-05-25 12:43:00 +0200
committerGünther Deschner <gd@samba.org>2010-05-25 12:43:00 +0200
commitf12028a3fd5c64bc8e13996cb9a18a19ec0929e0 (patch)
treefc26371ac5ee4f92edf5f0bd299944c369713aba /source3
parent8e41f2e66a6be425e161ee2ec1cea386332a6186 (diff)
downloadsamba-f12028a3fd5c64bc8e13996cb9a18a19ec0929e0.tar.gz
samba-f12028a3fd5c64bc8e13996cb9a18a19ec0929e0.tar.bz2
samba-f12028a3fd5c64bc8e13996cb9a18a19ec0929e0.zip
s3-net: fix a "dereferencing type-punned pointer will break strict-aliasing rules" warning.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_ads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 8945d99014..9665a3aa86 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -541,7 +541,7 @@ static int ads_user_info(struct net_context *c, int argc, const char **argv)
char *escaped_user;
struct dom_sid primary_group_sid;
uint32_t group_rid;
- enum SID_NAME_USE type;
+ enum wbcSidType type;
if (argc < 1 || c->display_usage) {
return net_ads_user_usage(c, argc, argv);
@@ -596,7 +596,7 @@ static int ads_user_info(struct net_context *c, int argc, const char **argv)
wbc_status = wbcLookupSid((struct wbcDomainSid *)&primary_group_sid,
NULL, /* don't look up domain */
&primary_group,
- (enum wbcSidType *) &type);
+ &type);
if (!WBC_ERROR_IS_OK(wbc_status)) {
d_fprintf(stderr, "wbcLookupSid: %s\n",
wbcErrorString(wbc_status));