git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0529b59
)
s3:idmap_autorid: Use ARRAY_SIZE where appropriate
author
Volker Lendecke
<vl@samba.org>
Thu, 11 Jul 2013 11:07:52 +0000
(13:07 +0200)
committer
Christian 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
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_autorid.c
b/source3/winbindd/idmap_autorid.c
index 391a31405f4ee472d3c593e95f2da65563503c99..fc362fc17c1ec835cdaf756e5bfc55b298524be0 100644
(file)
--- 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) {