autorid: reverse order of arguments of idmap_autorid_sid_to_id_alloc()
authorMichael Adam <obnox@samba.org>
Fri, 11 Apr 2014 19:06:26 +0000 (21:06 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 25 Apr 2014 13:35:09 +0000 (15:35 +0200)
for consistency

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/idmap_autorid.c

index 530a7201974a8416175844639b16b9df85d9287f..869131f9362bf2a1f2854f45d289c7e2fd7a22de 100644 (file)
@@ -341,9 +341,10 @@ static NTSTATUS idmap_autorid_unixids_to_sids(struct idmap_domain *dom,
 /*
  * map a SID to xid using the idmap_tdb like pool
  */
-static NTSTATUS idmap_autorid_sid_to_id_alloc(struct idmap_domain *dom,
-                                       struct id_map *map,
-                                       struct idmap_tdb_common_context *ctx)
+static NTSTATUS idmap_autorid_sid_to_id_alloc(
+                                       struct idmap_tdb_common_context *ctx,
+                                       struct idmap_domain *dom,
+                                       struct id_map *map)
 {
        NTSTATUS ret;
        int res;
@@ -445,7 +446,7 @@ static NTSTATUS idmap_autorid_sid_to_id(struct idmap_tdb_common_context *common,
                DEBUG(10, ("SID %s is for ALLOC range.\n",
                           sid_string_dbg(map->sid)));
 
-               return idmap_autorid_sid_to_id_alloc(dom, map, common);
+               return idmap_autorid_sid_to_id_alloc(common, dom, map);
        }
 
        if (dom_sid_equal(&domainsid, &global_sid_Builtin) && ignore_builtin) {