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.
This commit is contained in:
parent
3349419ebc
commit
0936c8f216
7 changed files with 11 additions and 53 deletions
|
|
@ -120,17 +120,11 @@ md_hasclreol(void)
|
|||
}
|
||||
|
||||
#ifdef attron
|
||||
# define _puts(s) tputs(s, 0, md_putchar);
|
||||
# define _puts(s) tputs(s, 0, putchar);
|
||||
# define SO enter_standout_mode
|
||||
# define SE exit_standout_mode
|
||||
#endif
|
||||
|
||||
int
|
||||
md_putchar(int c)
|
||||
{
|
||||
putchar(c);
|
||||
}
|
||||
|
||||
static int md_standout_mode = 0;
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue