top(1): remove wrapper around putchar

This appears to have been written for portability which we no longer
need.
This commit is contained in:
Eitan Adler 2018-06-02 07:44:53 +00:00
parent 960a7f3960
commit 2c1fdbac13
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334525
2 changed files with 1 additions and 10 deletions

View File

@ -323,11 +323,3 @@ go_home(void)
putcap(home);
}
}
/* This has to be defined as a subroutine for tputs (instead of a macro) */
int
putstdout(int ch)
{
return putchar(ch);
}

View File

@ -7,7 +7,7 @@
* $FreeBSD$
*/
#define TCputs(str) tputs(str, 1, putstdout)
#define TCputs(str) tputs(str, 1, putchar)
#define putcap(str) (void)((str) != NULL ? TCputs(str) : 0)
#define Move_to(x, y) TCputs(tgoto(cursor_motion, x, y))
@ -26,7 +26,6 @@ extern int screen_length;
extern int screen_width;
/* a function that puts a single character on stdout */
int putstdout(int ch);
int clear_eol(int len);
void top_standout(char *msg);
void top_clear(void);