diff rogue4/mdport.c @ 282:8b6aba552f6f

Excise md_putchar(). The function wrapped the standard putchar(), doing nothing beside discarding the return value. That could cause problems with tputs(), which expects an int to be returned.
author John "Elwin" Edwards
date Mon, 18 Sep 2017 19:11:57 -0400
parents d3968e9cb98d
children 6376b514a30b
line wrap: on
line diff
--- a/rogue4/mdport.c	Fri Sep 15 21:16:28 2017 -0400
+++ b/rogue4/mdport.c	Mon Sep 18 19:11:57 2017 -0400
@@ -119,12 +119,6 @@
 #endif
 }
 
-void
-md_putchar(int c)
-{
-    putchar(c);
-}
-
 static int md_standout_mode = 0;
 
 void
@@ -145,7 +139,7 @@
         md_standout_mode = 1;
     }
 #elif defined(SO)
-    tputs(SO,0,md_putchar);
+    tputs(SO,0,putchar);
     fflush(stdout);
 #endif
 }
@@ -168,7 +162,7 @@
         md_standout_mode = 0;
     }
 #elif defined(SE)
-    tputs(SE,0,md_putchar);
+    tputs(SE,0,putchar);
     fflush(stdout);
 #endif
 }