ocfs2: replace strnicmp with strncasecmp
[sfrench/cifs-2.6.git] / fs / ocfs2 / cluster / heartbeat.c
index d1338544816896dc773fc930b43dc44bcc157266..eb9d48746ab4008acc1a529c37a15ca98a00c882 100644 (file)
@@ -2244,7 +2244,7 @@ ssize_t o2hb_heartbeat_group_mode_store(struct o2hb_heartbeat_group *group,
                return -EINVAL;
 
        for (i = 0; i < O2HB_HEARTBEAT_NUM_MODES; ++i) {
-               if (strnicmp(page, o2hb_heartbeat_mode_desc[i], len))
+               if (strncasecmp(page, o2hb_heartbeat_mode_desc[i], len))
                        continue;
 
                ret = o2hb_global_heartbeat_mode_set(i);