aboutsummaryrefslogtreecommitdiff
path: root/winsup/utils
diff options
context:
space:
mode:
authorJoshua Daniel Franklin <joshuadfranklin@yahoo.com>2002-09-15 15:19:49 +0000
committerJoshua Daniel Franklin <joshuadfranklin@yahoo.com>2002-09-15 15:19:49 +0000
commit9b566b9695a3324e0856ae4c6e33eb0799e6682f (patch)
treee00dbfbbe29a84040e3156472b10b1bef65f3619 /winsup/utils
parent53217744a3fda107cd6d753da49780e6924d054f (diff)
downloadnewlib-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/ChangeLog5
-rw-r--r--winsup/utils/cygpath.cc7
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)