Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-05-13 09:13:58 +0400
committerChristopher Faylor <me@cgf.cx>2002-05-13 09:13:58 +0400
commitc49fa762631f93c496e3e4e7d55ff730cf24d789 (patch)
tree7195a373b927dab5c2f1a44b275719f689fe678b /winsup/utils/mount.cc
parentd52265ffb265f8d72cbace65ca2656d8f55200f3 (diff)
* Makefile.in (kill.exe): Add as a specific target.
* kill.cc (longopts): New. (opts): Ditto. (get_sig): Accept const char * parameter. Return -1 on unknown signal. (test_for_unknown_sig): New function. (listsig): New function. (main): Use getopt_long for option parsing. Implement -l, and -s options. Use test_for_unknown_sig() to test for signal validity.
Diffstat (limited to 'winsup/utils/mount.cc')
-rw-r--r--winsup/utils/mount.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc
index c44d04bd1..959cdf956 100644
--- a/winsup/utils/mount.cc
+++ b/winsup/utils/mount.cc
@@ -109,7 +109,7 @@ do_mount (const char *dev, const char *where, int flags)
exit (0);
}
-struct option longopts[] =
+static struct option longopts[] =
{
{"help", no_argument, NULL, 'h' },
{"binary", no_argument, NULL, 'b'},
@@ -127,7 +127,7 @@ struct option longopts[] =
{NULL, 0, NULL, 0}
};
-char opts[] = "hbfstuxXEpicm";
+static char opts[] = "hbfstuxXEpicm";
static void
usage (void)