summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/tier.c
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-08-21 19:18:17 +0300
committerAmar Tumballi <amarts@redhat.com>2018-08-29 06:09:10 +0000
commit8d171374cbbbdd88c8714198903b317bd132e1e2 (patch)
treeb10e6fd5ba8b79d41e79c2d22757a5d3e82576a4 /xlators/cluster/dht/src/tier.c
parent60ef38482cc8d61711ecc48159cf6c036b1522a8 (diff)
multiple files: move from strlen() to sizeof()
{glusterfsd|glusterfsd-mgmt|quota-common-utils|xlator|tier|stripe}.c tools/setgfid2path/src/main.c xlators/cluster/afr/src/afr-inode-read.c {glusterfs-acl|glusterfs}.h For const strings, just do compile time size calc instead of runtime. Compile-tested only! Change-Id: I303684b1ff29b05c10126fb1057f507e404ced07 updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/tier.c')
-rw-r--r--xlators/cluster/dht/src/tier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c
index fd57ddfaaab..13ce7f4fb2b 100644
--- a/xlators/cluster/dht/src/tier.c
+++ b/xlators/cluster/dht/src/tier.c
@@ -1583,7 +1583,7 @@ tier_process_brick (tier_brick_list_t *local_brick, void *args) {
goto out;
}
- if (strval && (strncmp(strval, "wal", strlen ("wal")) == 0)) {
+ if (strval && (strncmp(strval, "wal", SLEN ("wal")) == 0)) {
ret = tier_process_self_query (local_brick, args);
if (ret) {
goto out;