From 7c518815315e6e7d8943314e42982a829bb3fb09 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 19 Oct 2002 11:41:31 +0000 Subject: [PATCH] * mount.cc (usage): Correctly report default mode. --- winsup/utils/ChangeLog | 4 ++++ winsup/utils/mount.cc | 4 ++-- winsup/utils/strace.cc | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 666f57546..56a5cf26e 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,7 @@ +2002-10-19 Christopher Faylor + + * mount.cc (usage): Correctly report default mode. + 2002-09-29 Christopher Faylor * cygpath.cc (close_arg): Remove unused static. diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc index 038df0bd0..d4852e50f 100644 --- a/winsup/utils/mount.cc +++ b/winsup/utils/mount.cc @@ -134,7 +134,7 @@ static void usage (FILE *where = stderr) { fprintf (where, "Usage: %s [OPTION] [ ]\n\ - -b, --binary text files are equivalent to binary files\n\ + -b, --binary (default) text files are equivalent to binary files\n\ (newline = \\n)\n\ -c, --change-cygdrive-prefix change the cygdrive path prefix to \n\ -f, --force force mount, don't warn about missing mount\n\ @@ -144,7 +144,7 @@ usage (FILE *where = stderr) system mount points and cygdrive prefixes\n\ -p, --show-cygdrive-prefix show user and/or system cygdrive path prefix\n\ -s, --system (default) add system-wide mount point\n\ - -t, --text (default) text files get \\r\\n line endings\n\ + -t, --text text files get \\r\\n line endings\n\ -u, --user add user-only mount point\n\ -v, --version output version information and exit\n\ -x, --executable treat all files under mount point as executables\n\ diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index 79187cdbc..26ffa4737 100644 --- a/winsup/utils/strace.cc +++ b/winsup/utils/strace.cc @@ -944,10 +944,10 @@ character #%d.\n", optarg, (int) (endptr - optarg), endptr); #endif break; case 'p': - pid = strtol (optarg, NULL, 10); + pid = strtoul (optarg, NULL, 10); break; case 'S': - flush_period = strtol (optarg, NULL, 10); + flush_period = strtoul (optarg, NULL, 10); break; case 't': hhmmss ^= 1;