aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2014-01-05 13:31:52 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2014-01-05 13:31:52 +0100
commitce660230531f9136b7cba705e6ae06a1e370ef74 (patch)
treee56f140a6566b7afc509a3f2146df86d690a7cf2 /colorize.c
parent76aaf053b7016da083c0cdcacae05a8eb7f35688 (diff)
downloadcolorize-ce660230531f9136b7cba705e6ae06a1e370ef74.tar.gz
colorize-ce660230531f9136b7cba705e6ae06a1e370ef74.tar.bz2
Silence warnings under -pedantic
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/colorize.c b/colorize.c
index 9a5646f..d174a11 100644
--- a/colorize.c
+++ b/colorize.c
@@ -211,6 +211,8 @@ static void release_var (void **, unsigned int, void **);
extern char *optarg;
extern int optind;
+static int opt_type = 0;
+
int
main (int argc, char **argv)
{
@@ -224,7 +226,7 @@ main (int argc, char **argv)
OPT_VERSION
};
- int opt, opt_type = 0;
+ int opt;
struct option long_opts[] = {
{ "clean", no_argument, &opt_type, OPT_CLEAN },
{ "clean-all", no_argument, &opt_type, OPT_CLEAN_ALL },