summaryrefslogtreecommitdiffstats
path: root/winsup/utils/cygcheck.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-10-28 05:39:38 +0000
committerChristopher Faylor <me@cgf.cx>2000-10-28 05:39:38 +0000
commitce475802f8aa48518553eabd5887bcc439b61a0d (patch)
tree328fd19ec94c0812540ab5a772e5f30584a40ad9 /winsup/utils/cygcheck.cc
parenteedc36cb12f20ed62f5dfeaea25c84c7c984cf5f (diff)
downloadcygnal-ce475802f8aa48518553eabd5887bcc439b61a0d.tar.gz
cygnal-ce475802f8aa48518553eabd5887bcc439b61a0d.tar.bz2
cygnal-ce475802f8aa48518553eabd5887bcc439b61a0d.zip
* Makefile.in: Accomodate newer gcc's which require linking of c++ programs
with g++. Fixup output for some compilations. * cygcheck.cc: Respond to compiler warnings. * dumper.cc (main): Ditto. * parse_pe.cc (exclusion::sort_and_check): Ditto. * setfacl.cc (getaclentry): Ditto.
Diffstat (limited to 'winsup/utils/cygcheck.cc')
-rw-r--r--winsup/utils/cygcheck.cc46
1 files changed, 13 insertions, 33 deletions
diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc
index 94734c98e..dfca35b0f 100644
--- a/winsup/utils/cygcheck.cc
+++ b/winsup/utils/cygcheck.cc
@@ -61,38 +61,17 @@ struct
}
common_apps[] =
{
- {
- "bash", 0}
- ,
- {
- "cat", 0}
- ,
- {
- "cpp", 1}
- ,
- {
- "find", 0}
- ,
- {
- "gcc", 0}
- ,
- {
- "gdb", 0}
- ,
- {
- "ld", 0}
- ,
- {
- "ls", 0}
- ,
- {
- "make", 0}
- ,
- {
- "sh", 0}
- ,
- {
- 0, 0}
+ {"bash", 0},
+ {"cat", 0},
+ {"cpp", 1},
+ {"find", 0},
+ {"gcc", 0},
+ {"gdb", 0},
+ {"ld", 0},
+ {"ls", 0},
+ {"make", 0},
+ {"sh", 0},
+ {0, 0}
};
int num_paths = 0, max_paths = 0;
@@ -1038,7 +1017,8 @@ struct option longopts[] = {
{"help", no_argument, NULL, 'h'},
{0, no_argument, NULL, 0}
};
-char *opts = "srvkh";
+
+char opts[] = "srvkh";
int
main (int argc, char **argv)