diff options
author | Volker Lendecke <vl@samba.org> | 2013-07-11 13:07:52 +0200 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2013-07-08 05:59:54 +0200 |
commit | a061b6fe43f3e00dadb5c23244c68e5bc241dfce (patch) | |
tree | a67c3ff18868805fd8963124467258e50abe2a43 /source3 | |
parent | 0529b59fbe3f96509893fc4e93a75d6928b5a532 (diff) | |
download | samba-a061b6fe43f3e00dadb5c23244c68e5bc241dfce.tar.gz samba-a061b6fe43f3e00dadb5c23244c68e5bc241dfce.tar.xz samba-a061b6fe43f3e00dadb5c23244c68e5bc241dfce.zip |
s3:idmap_autorid: Use ARRAY_SIZE where appropriate
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/idmap_autorid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index 391a31405f..fc362fc17c 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -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) { |