From e8e6441094766bf9c4a832acbda9d29a32e7841e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 26 Apr 2005 16:41:29 +0000 Subject: Remove posixver.h and its uses. (header_mode_option): Remove. (main): Don't complain about obsolete -NUM args. --- src/head.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2