Date: Sat, 2 Jun 2018 07:44:54 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334525 - head/usr.bin/top Message-ID: <201806020744.w527isLN079793@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Sat Jun 2 07:44:53 2018 New Revision: 334525 URL: https://svnweb.freebsd.org/changeset/base/334525 Log: top(1): remove wrapper around putchar This appears to have been written for portability which we no longer need. Modified: head/usr.bin/top/screen.c head/usr.bin/top/screen.h Modified: head/usr.bin/top/screen.c ============================================================================== --- head/usr.bin/top/screen.c Sat Jun 2 07:44:50 2018 (r334524) +++ head/usr.bin/top/screen.c Sat Jun 2 07:44:53 2018 (r334525) @@ -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); -} Modified: head/usr.bin/top/screen.h ============================================================================== --- head/usr.bin/top/screen.h Sat Jun 2 07:44:50 2018 (r334524) +++ head/usr.bin/top/screen.h Sat Jun 2 07:44:53 2018 (r334525) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806020744.w527isLN079793>