diff options
author | Joshua Daniel Franklin <joshuadfranklin@yahoo.com> | 2002-09-15 15:19:49 +0000 |
---|---|---|
committer | Joshua Daniel Franklin <joshuadfranklin@yahoo.com> | 2002-09-15 15:19:49 +0000 |
commit | 9b566b9695a3324e0856ae4c6e33eb0799e6682f (patch) | |
tree | e00dbfbbe29a84040e3156472b10b1bef65f3619 /winsup/utils | |
parent | 53217744a3fda107cd6d753da49780e6924d054f (diff) | |
download | newlib-9b566b9695a3324e0856ae4c6e33eb0799e6682f.zip newlib-9b566b9695a3324e0856ae4c6e33eb0799e6682f.tar.gz newlib-9b566b9695a3324e0856ae4c6e33eb0799e6682f.tar.bz2 |
2002-09-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
* cygpath.cc (options) New global variable.
(main) Make short options global for easier change.
(print_version) Add a missing newline.
Diffstat (limited to 'winsup/utils')
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/cygpath.cc | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 04a4c3a..d07d833 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +2002-09-12 Igor Pechtchanski <pechtcha@cs.nyu.edu> + * cygpath.cc (options) New global variable. + (main) Make short options global for easier change. + (print_version) Add a missing newline. + 2002-08-07 Igor Pechtchanski <pechtcha@cs.nyu.edu> * regtool.cc (find_key): Add support for custom key separator. diff --git a/winsup/utils/cygpath.cc b/winsup/utils/cygpath.cc index cbfec3b..8ba2811 100644 --- a/winsup/utils/cygpath.cc +++ b/winsup/utils/cygpath.cc @@ -57,6 +57,8 @@ static struct option long_options[] = { {0, no_argument, 0, 0} }; +static char options[] = "ac:df:hilmopst:uvwADHPSW"; + static void usage (FILE * stream, int status) { @@ -534,7 +536,8 @@ print_version () cygpath (cygwin) %.*s\n\ Path Conversion Utility\n\ Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.\n\ -Compiled on %s", len, v, __DATE__); +Compiled on %s\n\ +", len, v, __DATE__); } int @@ -562,7 +565,7 @@ main (int argc, char **argv) options_from_file_flag = 0; allusers_flag = 0; output_flag = 0; - while ((c = getopt_long (argc, argv, (char *) "ac:df:hilmopst:uvwADHPSW", + while ((c = getopt_long (argc, argv, options, long_options, (int *) NULL)) != EOF) { switch (c) |