summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2007-08-11 08:30:43 +0200
committerJim Meyering <jim@meyering.net>2007-08-11 08:32:50 +0200
commited31c612c12e603ce86073952018bf7f00f9cd59 (patch)
tree6b4a11c2f0f491d53127516d9e01fb1914fa9f76 /lib
parentd243c0e840138cc5d8bf67c9d2a785bdbd74a8d9 (diff)
downloadcoreutils-ed31c612c12e603ce86073952018bf7f00f9cd59.tar.xz
Accommodate more xstrtol changes.
* src/df.c (long_options): Don't bother prepending "--" to long options that OPT_STR might decode, as that hack is no longer needed. (main): Invoke xstrtol_fatal rather than STRTOL_FATAL_ERROR. * src/du.c (long_options, main): Likewise. * src/ls.c (decode_switches): Likewise. * src/od.c (long_options, main): Likewise. * src/pr.c (first_last_page, main): Likewise. * src/sort.c (long_options, specify_sort_size): Likewise. * src/pr.c (first_last_page): Accept option index and option char instead of an assembled option string. All callers changed. * src/sort.c (specify_sort_size): Likewise. * src/system.h (OPT_STR, LONG_OPT_STR, short_opt_str, OPT_STR_INIT): Remove.
Diffstat (limited to 'lib')
-rw-r--r--lib/.cvsignore1
-rw-r--r--lib/.gitignore1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/.cvsignore b/lib/.cvsignore
index b4694ec7d..d16b937df 100644
--- a/lib/.cvsignore
+++ b/lib/.cvsignore
@@ -439,6 +439,7 @@ xstrndup.h
xstrtod.c
xstrtod.h
xstrtoimax.c
+xstrtol-error.c
xstrtol.c
xstrtol.h
xstrtold.c
diff --git a/lib/.gitignore b/lib/.gitignore
index 67dd9223f..b81fee7e7 100644
--- a/lib/.gitignore
+++ b/lib/.gitignore
@@ -430,6 +430,7 @@ xstrndup.h
xstrtod.c
xstrtod.h
xstrtoimax.c
+xstrtol-error.c
xstrtol.c
xstrtol.h
xstrtold.c