* src/numfmt.c (parse_field_arg): Rename parameter s/optarg/arg/,
to avoid shadowing getopt's global variable.
Otherwise, building on OS X, with --enable-gcc-warnings, I saw this:
In file included from src/numfmt.c:19:0:
src/numfmt.c: In function 'parse_field_arg':
./lib/config.h:3109:25: error: declaration of 'rpl_optarg' shadows\
a global declaration [-Werror=shadow]
TODO: Refactor the more performant cut implementation
for use by both utilities. */
static void
-parse_field_arg (char *optarg)
+parse_field_arg (char *arg)
{
char *start, *end;
size_t field_val;
size_t range_val = 0;
- start = end = optarg;
+ start = end = arg;
- if (STREQ (optarg, "-"))
+ if (STREQ (arg, "-"))
{
all_fields = true;
if (range_val)
{
/* range N-
- range_val was not reset indicating optarg
+ range_val was not reset indicating ARG
ended with a trailing '-' */
all_fields_after = range_val;
}