summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-03-29 10:33:23 -0600
committerEric Blake <eblake@redhat.com>2010-03-29 11:31:59 -0600
commite8090680ba09c9741121b628faee62d423abc868 (patch)
treea9e08cad45692fe329967cf7676f07fa9f283894 /src
parent74902d9375129575a36731c7407d2a453286a1c7 (diff)
downloadgrep-e8090680ba09c9741121b628faee62d423abc868.tar.gz
build: avoid warnings on cygwin
* lib/savedir.c (isdir): Avoid shadowing a declaration. * src/main.c (get_nondigit_option): Cast away const to avoid compiler warning.
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index fe4e1014..3fdcfb9b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1629,7 +1629,8 @@ get_nondigit_option (int argc, char *const *argv, int *default_context)
was_digit = 0;
this_digit_optind = optind;
- while (opt = getopt_long (argc, argv, short_options, long_options, NULL),
+ while (opt = getopt_long (argc, (char **) argv, short_options, long_options,
+ NULL),
'0' <= opt && opt <= '9')
{
if (prev_digit_optind != this_digit_optind || !was_digit)