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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to