s3: fix compile warning on openindiana
authorBjörn Jacke <bj@sernet.de>
Thu, 23 Aug 2012 13:57:47 +0000 (15:57 +0200)
committerBjoern Jacke <bj@sernet.de>
Thu, 23 Aug 2012 16:22:13 +0000 (18:22 +0200)
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Thu Aug 23 18:22:13 CEST 2012 on sn-devel-104

source3/passdb/lookup_sid.c

index 26ce41cc09e21958f4b2706250a781a17164f37d..530fa6bfa0a477500aa7d2860c488511d92cc73f 100644 (file)
@@ -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;
                        }