summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-04-26 16:41:29 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-04-26 16:41:29 +0000
commite8e6441094766bf9c4a832acbda9d29a32e7841e (patch)
tree09daabc6970278eb7134a50c27a5067b28c691e9
parentbcb5f0e6dae2331868b1dbc64a261fc537c8d2d1 (diff)
downloadcoreutils-e8e6441094766bf9c4a832acbda9d29a32e7841e.tar.xz
Remove posixver.h and its uses.
(header_mode_option): Remove. (main): Don't complain about obsolete -NUM args.
-rw-r--r--src/head.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/head.c b/src/head.c
index 5c835b436..3b54e8849 100644
--- a/src/head.c
+++ b/src/head.c
@@ -36,7 +36,6 @@
#include "full-write.h"
#include "full-read.h"
#include "inttostr.h"
-#include "posixver.h"
#include "quote.h"
#include "safe-read.h"
#include "xstrtol.h"
@@ -64,9 +63,6 @@ enum header_mode
multiple_files, always, never
};
-/* Options corresponding to header_mode values. */
-static char const header_mode_option[][4] = { "", " -v", " -q" };
-
/* The name this program was run with. */
char *program_name;
@@ -996,17 +992,6 @@ main (int argc, char **argv)
}
}
- if (200112 <= posix2_version ())
- {
- int n_string_prefix_len = end_n_string - n_string;
- error (0, 0, _("`-%s' option is obsolete; use `-%c %.*s%.*s%s'"),
- n_string, count_lines ? 'n' : 'c',
- n_string_prefix_len, n_string,
- multiplier_char != 0, &multiplier_char,
- header_mode_option[header_mode]);
- usage (EXIT_FAILURE);
- }
-
/* Append the multiplier character (if any) onto the end of
the digit string. Then add NUL byte if necessary. */
*end_n_string = multiplier_char;
@@ -1019,9 +1004,6 @@ main (int argc, char **argv)
argv[1] = argv[0];
argv++;
argc--;
-
- /* FIXME: allow POSIX options if there were obsolescent ones? */
-
}
while ((c = getopt_long (argc, argv, "c:n:qv", long_options, NULL)) != -1)