]> sourceware.org Git - newlib-cygwin.git/commitdiff
2002-09-12 Igor Pechtchanski <pechtcha@cs.nyu.edu>
authorJoshua Daniel Franklin <joshuadfranklin@yahoo.com>
Sun, 15 Sep 2002 15:19:49 +0000 (15:19 +0000)
committerJoshua Daniel Franklin <joshuadfranklin@yahoo.com>
Sun, 15 Sep 2002 15:19:49 +0000 (15:19 +0000)
* cygpath.cc (options) New global variable.
(main) Make short options global for easier change.
(print_version) Add a missing newline.

winsup/utils/ChangeLog
winsup/utils/cygpath.cc

index 04a4c3a249ec5bf8141b3438dd79da2b6e5ac888..d07d833626bd47a98c7fcb87ed40c547ae36bcd1 100644 (file)
@@ -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.
index cbfec3b58d7bb5c864d99aaf86c938f3fbff53bb..8ba2811c022f5ee81121dc09208d8d2e1b7ff364 100644 (file)
@@ -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)
This page took 0.036069 seconds and 5 git commands to generate.