Fix warning by setting the variable from GUID to const GUID
[obnox/samba/samba-obnox.git] / source4 / dsdb / samdb / ldb_modules / ridalloc.c
index d0266eda8aa8845f8039e153963797ce48e67d6f..73ecb0389199ad9ef9676bef5617ee1b20e4784a 100644 (file)
@@ -388,7 +388,8 @@ static int ridalloc_create_own_rid_set(struct ldb_module *module, TALLOC_CTX *me
        struct ldb_dn *rid_manager_dn, *fsmo_role_dn;
        int ret;
        struct ldb_context *ldb = ldb_module_get_ctx(module);
-       struct GUID fsmo_role_guid, *our_ntds_guid;
+       struct GUID fsmo_role_guid;
+       const struct GUID *our_ntds_guid;
        NTSTATUS status;
 
        /* work out who is the RID Manager */