From 2b2c0ef64f734e892521abb3c9a8d6cba5d8dd6f Mon Sep 17 00:00:00 2001 From: Tom Li Date: Wed, 25 Feb 2015 15:10:02 +0800 Subject: [PATCH] exfat_super.c: use strncasecmp instead of strnicmp. There are two functions, strnicmp and strncasecmp do the same thing. In Linux 3.18, strnicmp was renamed to strncasecmp, and the original function became a wrapper to it. In Linux 4.0, strnicmp was removed. --- exfat_super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exfat_super.c b/exfat_super.c index a8283fa..68b2f5e 100644 --- a/exfat_super.c +++ b/exfat_super.c @@ -386,7 +386,7 @@ static int exfat_cmpi(const struct dentry *parent, const struct inode *pinode, blen = __exfat_striptail_len(len, str); if (alen == blen) { if (t == NULL) { - if (strnicmp(name->name, str, alen) == 0) + if (strncasecmp(name->name, str, alen) == 0) return 0; } else if (nls_strnicmp(t, name->name, str, alen) == 0) return 0;