diff --git a/top/top.c b/top/top.c index 2bdae65f..c448a642 100644 --- a/top/top.c +++ b/top/top.c @@ -2723,6 +2723,12 @@ static void file_writerc (void) { } // end: file_writerc + + /* This is currently the one true prototype require by top. + It is placed here, instead of top.h, so as to avoid a compiler + warning when top_nls.c is compiled. */ +static void task_show (const WIN_t *q, const proc_t *p, char *ptr); + static void find_string (int ch) { #define reDUX (found) ? N_txt(WORD_another_txt) : "" static char str[SCREENMAX]; diff --git a/top/top.h b/top/top.h index a2751109..7461f32a 100644 --- a/top/top.h +++ b/top/top.h @@ -531,8 +531,8 @@ typedef struct WIN_t { /*###### Some Prototypes (ha!) #########################################*/ - /* These 'prototypes' are here mostly for documentation purposes -- */ - /* for now, the only essential one is task_show needed by find_string */ + /* These 'prototypes' are here exclusively for documentation purposes. */ + /* ( see the find_string function for the one true required protoype ) */ /*------ Sort callbacks ------------------------------------------------*/ /* for each possible field, in the form of: */ /*atic int sort_P_XXX (const proc_t **P, const proc_t **Q); */ @@ -618,7 +618,7 @@ typedef struct WIN_t { //atic void do_key (int ch); //atic void summary_hlp (CPU_t *cpu, const char *pfx); //atic void summary_show (void); -static void task_show (const WIN_t *q, const proc_t *p, char *ptr); +//atic void task_show (const WIN_t *q, const proc_t *p, char *ptr); //atic int window_show (WIN_t *q, int wmax); /*------ Entry point plus two ------------------------------------------*/ //atic void frame_hlp (int wix, int max);