diff options
author | Christopher Faylor <me@cgf.cx> | 2002-05-13 09:13:58 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-05-13 09:13:58 +0400 |
commit | c49fa762631f93c496e3e4e7d55ff730cf24d789 (patch) | |
tree | 7195a373b927dab5c2f1a44b275719f689fe678b /winsup/utils/mount.cc | |
parent | d52265ffb265f8d72cbace65ca2656d8f55200f3 (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.cc | 4 |
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) |