ocfs2: replace strnicmp with strncasecmp
[sfrench/cifs-2.6.git] / fs / ocfs2 / cluster / masklog.c
index 07ac24fd92520f604f6d3cfeff4cd4bd2c6ad85c..af7598bff1b51364affd08eba9cfedba8b3acf16 100644 (file)
@@ -49,13 +49,13 @@ static ssize_t mlog_mask_show(u64 mask, char *buf)
 
 static ssize_t mlog_mask_store(u64 mask, const char *buf, size_t count)
 {
-       if (!strnicmp(buf, "allow", 5)) {
+       if (!strncasecmp(buf, "allow", 5)) {
                __mlog_set_u64(mask, mlog_and_bits);
                __mlog_clear_u64(mask, mlog_not_bits);
-       } else if (!strnicmp(buf, "deny", 4)) {
+       } else if (!strncasecmp(buf, "deny", 4)) {
                __mlog_set_u64(mask, mlog_not_bits);
                __mlog_clear_u64(mask, mlog_and_bits);
-       } else if (!strnicmp(buf, "off", 3)) {
+       } else if (!strncasecmp(buf, "off", 3)) {
                __mlog_clear_u64(mask, mlog_not_bits);
                __mlog_clear_u64(mask, mlog_and_bits);
        } else