summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/authenticate.c
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-08-21 20:32:01 +0300
committerAmar Tumballi <amarts@redhat.com>2018-08-31 06:13:54 +0000
commit058d215174b93b3aa14be99073979f45642e519e (patch)
treec0e1d2a040d549058eee88c09737f178e1fd893d /xlators/protocol/server/src/authenticate.c
parentd6d729b0609957c0382749c30da507dda77561b7 (diff)
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 <ykaul@redhat.com>
Diffstat (limited to 'xlators/protocol/server/src/authenticate.c')
-rw-r--r--xlators/protocol/server/src/authenticate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/authenticate.c b/xlators/protocol/server/src/authenticate.c
index 5163d465261..0d95b9a7ac9 100644
--- a/xlators/protocol/server/src/authenticate.c
+++ b/xlators/protocol/server/src/authenticate.c
@@ -33,7 +33,7 @@ init (dict_t *this, char *key, data_t *value, void *data)
/* It gets over written */
error = data;
- if (!strncasecmp (key, "ip", strlen ("ip"))) {
+ if (!strncasecmp (key, "ip", SLEN ("ip"))) {
gf_msg ("authenticate", GF_LOG_ERROR, 0,
PS_MSG_AUTHENTICATE_ERROR, "AUTHENTICATION MODULE "
"\"IP\" HAS BEEN REPLACED BY \"ADDR\"");