diff rogue3/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 3d4252fa2ed3
children 5b6855d5d089
line wrap: on
line diff
--- a/rogue3/mdport.c	Fri Sep 15 21:16:28 2017 -0400
+++ b/rogue3/mdport.c	Mon Sep 18 19:11:57 2017 -0400
@@ -282,12 +282,6 @@
 #endif
 }
 
-void
-md_putchar(int c)
-{
-    putchar(c);
-}
-
 #ifdef _WIN32
 static int md_standout_mode = 0;
 #endif
@@ -310,7 +304,7 @@
         md_standout_mode = 1;
     }
 #elif defined(SO)
-    tputs(SO,0,md_putchar);
+    tputs(SO,0,putchar);
     fflush(stdout);
 #endif
 }
@@ -333,7 +327,7 @@
         md_standout_mode = 0;
     }
 #elif defined(SE)
-    tputs(SE,0,md_putchar);
+    tputs(SE,0,putchar);
     fflush(stdout);
 #endif
 }