summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-08-23 15:57:47 +0200
committerBjoern Jacke <bj@sernet.de>2012-08-23 18:22:13 +0200
commitcbecd1595c9ed4f0eb8eb76b60ae28eea6a395f4 (patch)
tree972948809b80a081a4a018ebe1ddd6d34c62a078 /source3/passdb
parentb4252f8fa6b48ac7aabeff5b7e801973533cfee4 (diff)
downloadsamba-cbecd1595c9ed4f0eb8eb76b60ae28eea6a395f4.tar.gz
samba-cbecd1595c9ed4f0eb8eb76b60ae28eea6a395f4.tar.bz2
samba-cbecd1595c9ed4f0eb8eb76b60ae28eea6a395f4.zip
s3: fix compile warning on openindiana
Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Aug 23 18:22:13 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/lookup_sid.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c
index 26ce41cc09..530fa6bfa0 100644
--- a/source3/passdb/lookup_sid.c
+++ b/source3/passdb/lookup_sid.c
@@ -1314,17 +1314,17 @@ bool sids_to_unixids(const struct dom_sid *sids, uint32_t num_sids,
for (i=0; i<num_sids; i++) {
if (ids[i].type == ID_TYPE_NOT_SPECIFIED) {
switch (wbc_ids[num_not_cached].type) {
- case ID_TYPE_UID:
- ids[i].type = WBC_ID_TYPE_UID;
+ case WBC_ID_TYPE_UID:
+ ids[i].type = ID_TYPE_UID;
ids[i].id = wbc_ids[num_not_cached].id.uid;
break;
- case ID_TYPE_GID:
- ids[i].type = WBC_ID_TYPE_GID;
+ case WBC_ID_TYPE_GID:
+ ids[i].type = ID_TYPE_GID;
ids[i].id = wbc_ids[num_not_cached].id.gid;
break;
default:
/* The types match, and wbcUnixId -> id is a union anyway */
- ids[i].type = wbc_ids[num_not_cached].type;
+ ids[i].type = (enum id_type)wbc_ids[num_not_cached].type;
ids[i].id = wbc_ids[num_not_cached].id.gid;
break;
}