summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-02 17:49:22 +0100
committerVolker Lendecke <vl@samba.org>2012-02-02 20:35:27 +0100
commitbbde29824179fc78ee923ccd24e4039b96eb866d (patch)
tree291bb3d654a895ee9ef6f0e298f0476e125f9e12 /source3/lib
parent03300f233c429caa9ec43cebebc603f4c7a513cb (diff)
downloadsamba-bbde29824179fc78ee923ccd24e4039b96eb866d.tar.gz
samba-bbde29824179fc78ee923ccd24e4039b96eb866d.tar.bz2
samba-bbde29824179fc78ee923ccd24e4039b96eb866d.zip
s3: Use ARRAY_SIZE in bsd_attr_list
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 821dd8d957..a308014f46 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -1797,7 +1797,7 @@ static ssize_t bsd_attr_list (int type, extattr_arg arg, char *list, size_t size
int i, t, len;
char *buf;
/* Iterate through extattr(2) namespaces */
- for(t = 0; t < (sizeof(extattr)/sizeof(extattr[0])); t++) {
+ for(t = 0; t < ARRAY_SIZE(extattr); t++) {
switch(type) {
#if defined(HAVE_EXTATTR_LIST_FILE)
case 0: