diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2018-08-21 18:56:24 +0300 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-08-25 17:10:11 +0000 |
commit | 14ee864f8b573d1bccf4f586450947ba4aa690a9 (patch) | |
tree | ff5f153f1fa229ed018f9f8e3fd3141a07b5709b /xlators/cluster/ec/src/ec-heal.c | |
parent | 7e229cf1d5d4c0600f0763dac3acacb1b950fc3b (diff) | |
download | glusterfs-14ee864f8b573d1bccf4f586450947ba4aa690a9.tar.gz glusterfs-14ee864f8b573d1bccf4f586450947ba4aa690a9.tar.xz glusterfs-14ee864f8b573d1bccf4f586450947ba4aa690a9.zip |
multiple files: move from strlen() to sizeof()
{ec-heal|ec-combine|ec-helpers|ec-inode-read}.c
For const strings, just do compile time size calc instead of runtime.
Compile-tested only!
Change-Id: If92ba0a7a20f64b898d01c6e3b6708190ca93e04
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-heal.c')
-rw-r--r-- | xlators/cluster/ec/src/ec-heal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-heal.c b/xlators/cluster/ec/src/ec-heal.c index c16b9c5c4f..8f57c7c3cd 100644 --- a/xlators/cluster/ec/src/ec-heal.c +++ b/xlators/cluster/ec/src/ec-heal.c @@ -66,7 +66,7 @@ ec_ignorable_key_match (dict_t *dict, char *key, data_t *val, void *mdata) if (!key) goto out; - if (strncmp (key, EC_XATTR_PREFIX, strlen (EC_XATTR_PREFIX)) == 0) + if (strncmp (key, EC_XATTR_PREFIX, SLEN (EC_XATTR_PREFIX)) == 0) return _gf_true; for (i = 0; ec_ignore_xattrs[i]; i++) { |