From 058d215174b93b3aa14be99073979f45642e519e Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Tue, 21 Aug 2018 20:32:01 +0300 Subject: multiple xlators: move from strlen() to sizeof() xlators/performance/nl-cache/src/nl-cache.c xlators/performance/md-cache/src/md-cache.c xlators/protocol/server/src/authenticate.c xlators/storage/bd/src/bd-helper.c For const strings, just do compile time size calc instead of runtime. Compile-tested only! Change-Id: I9b98940a38d85321a69436a1871930da367b918a updates: bz#1193929 Signed-off-by: Yaniv Kaul --- xlators/performance/md-cache/src/md-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/performance/md-cache') diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c index a1280d6a2cc..7da877f87e2 100644 --- a/xlators/performance/md-cache/src/md-cache.c +++ b/xlators/performance/md-cache/src/md-cache.c @@ -3236,7 +3236,7 @@ mdc_xattr_list_populate (struct mdc_conf *conf, char *tmp_str) size_t max_size = 0; int ret = 0; - max_size = strlen ("security.capability,security.selinux,security.ima," + max_size = SLEN ("security.capability,security.selinux,security.ima," POSIX_ACL_ACCESS_XATTR","POSIX_ACL_DEFAULT_XATTR"," GF_POSIX_ACL_ACCESS","GF_POSIX_ACL_DEFAULT"," "user.swift.metadata,user.DOSATTRIB,user.DosStream.*" -- cgit