]> granicus.if.org Git - procps-ng/commitdiff
top: whack an obsolete string plus its associated code <=== port of newlib 244f2b33 oldlib
authorJim Warner <james.warner@comcast.net>
Mon, 10 Oct 2022 18:24:13 +0000 (13:24 -0500)
committerCraig Small <csmall@dropbear.xyz>
Thu, 20 Oct 2022 10:44:14 +0000 (21:44 +1100)
______________________________ original newlib message
----------------------------------- ( minus git hash )

When long command line options were introduced, in the
patch shown below, the string associated with the enum
'WRONG_switch_fmt' became obsolete. However, that enum
and its string were never removed. Well, now they are.

Reference(s):
. Sep, 2021 - getopt and long cmdline options
commit ........................................

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top_nls.c
top/top_nls.h

index 4f36d1596cddf970ec16c55fee151969e5a05e94..f148f77457ccfb960475ad005c455acfe0453334 100644 (file)
@@ -330,9 +330,6 @@ static void build_norm_nlstab (void) {
    Norm_nlstab[EXIT_signals_fmt] = _(""
       "\tsignal %d (%s) was caught by %s, please\n"
       "\tsend bug reports to <procps@freelists.org>\n");
-   Norm_nlstab[WRONG_switch_fmt] = _(""
-      "inappropriate '%s'\n"
-      "Usage:\n  %s%s");
    Norm_nlstab[HELP_cmdline_fmt] = _("\n"
       "Usage:\n"
       " %s [options]\n"
index e54452931d7827544e85fc6f6f18a0cb85ccdc8f..2c7c913558f92c18f1ad1c958e0d999681303e13 100644 (file)
@@ -81,7 +81,7 @@ enum norm_nls {
    TIME_accumed_fmt, UNKNOWN_cmds_txt, UNKNOWN_opts_fmt, VERSION_opts_fmt,
    WORD_abv_mem_txt, WORD_abv_swp_txt, WORD_allcpus_txt, WORD_another_txt,
    WORD_eachcpu_fmt, WORD_exclude_txt, WORD_include_txt, WORD_noneone_txt,
-   WORD_process_txt, WORD_threads_txt, WRITE_rcfile_fmt, WRONG_switch_fmt,
+   WORD_process_txt, WORD_threads_txt, WRITE_rcfile_fmt,
    XTRA_badflds_fmt, XTRA_fixwide_fmt, XTRA_modebad_txt, XTRA_vforest_fmt,
    XTRA_warncfg_txt, XTRA_warnold_txt, XTRA_winsize_txt,
    X_BOT_cmdlin_fmt, X_BOT_ctlgrp_fmt, X_BOT_envirn_fmt, X_BOT_msglog_txt,