s3:idmap_autorid: Use ARRAY_SIZE where appropriate
authorVolker Lendecke <vl@samba.org>
Thu, 11 Jul 2013 11:07:52 +0000 (13:07 +0200)
committerChristian Ambach <ambi@samba.org>
Mon, 8 Jul 2013 03:59:54 +0000 (05:59 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
source3/winbindd/idmap_autorid.c

index 391a31405f4ee472d3c593e95f2da65563503c99..fc362fc17c1ec835cdaf756e5bfc55b298524be0 100644 (file)
@@ -834,7 +834,7 @@ static NTSTATUS idmap_autorid_preallocate_wellknown(struct idmap_domain *dom)
                return NT_STATUS_OK;
        }
 
-       num = sizeof(groups)/sizeof(char*);
+       num = ARRAY_SIZE(groups);
 
        maps = talloc_zero_array(talloc_tos(), struct id_map*, num+1);
        if (!maps) {