On Wed, Aug 26, 2015 at 03:12:17PM -0700, Andrew Morton wrote:
> From: Gang He <g...@suse.com>
> Subject: ocfs2: sysfile interfaces for online file check

...

> +static int
> +ocfs2_filecheck_args_parse(const char *buf, size_t count,
> +                             struct ocfs2_filecheck_args *args)
> +{
> +     unsigned long val = 0;
> +
> +     /* too short/long args length */
> +     if ((count < 5) || (count > OCFS2_FILECHECK_ARGS_LEN))
> +             return 1;
> +
> +     if ((strncmp(buf, "FIX ", 4) == 0) ||
> +             (strncmp(buf, "fix ", 4) == 0)) {

Use strncasecmp for this please.

--
Mark Fasheh

_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

Reply via email to