On Thu, Oct 29, 2015 at 05:31:48PM +0800, Zhao Lei wrote:
> +static void check_options(int argc, char **argv)
>  {
> +     if (argc == 0)
> +             return;
> +
> +     const char *arg = argv[0];

Declaration after statements, fixed at commit time.

> +
> +     if (arg[0] != '-' ||
> +         !strcmp(arg, "--help") ||
> +         !strcmp(arg, "--version"))
> +             return;
> +
> +     fprintf(stderr, "Unknown option: %s\n", arg);
> +     fprintf(stderr, "usage: %s\n",
> +             btrfs_cmd_group.usagestr[0]);
> +     exit(129);
>  }
>  
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to