From c7201d52eb093cbc5e942085eedcbf21b8434eb3 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Wed, 21 Oct 2015 00:00:00 -0500 Subject: [PATCH] top: miscellaneous accumulated tweaks to code/comments A patch containing the following miscellaneous tweaks: . remove a function that handled former library errors [ that function should have gone bye-bye with 3.3.11 ] [ when those 'wchan' provisions were much simplified ] Signed-off-by: Jim Warner --- top/top.c | 15 --------------- top/top.h | 1 - 2 files changed, 16 deletions(-) diff --git a/top/top.c b/top/top.c index 9d0e56aa..c01b9834 100644 --- a/top/top.c +++ b/top/top.c @@ -574,21 +574,6 @@ static void error_exit (const char *str) { } // end: error_exit - /* - * Handle library errors ourselves rather than accept a default - * fprintf to stderr (since we've mucked with the termios struct) */ -static void library_err (const char *fmts, ...) NORETURN; -static void library_err (const char *fmts, ...) { - static char tmp[MEDBUFSIZ]; - va_list va; - - va_start(va, fmts); - vsnprintf(tmp, sizeof(tmp), fmts, va); - va_end(va); - error_exit(tmp); -} // end: library_err - - /* * Catches all remaining signals not otherwise handled */ static void sig_abexit (int sig) { diff --git a/top/top.h b/top/top.h index ddf34f13..789b9b30 100644 --- a/top/top.h +++ b/top/top.h @@ -682,7 +682,6 @@ typedef struct WIN_t { //atic void at_eoj (void); //atic void bye_bye (const char *str); //atic void error_exit (const char *str); -//atic void library_err (const char *fmts, ...); //atic void sig_abexit (int sig); //atic void sig_endpgm (int dont_care_sig); //atic void sig_paused (int dont_care_sig);