#984556 term.c: various changes

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-04 23:57:03 UTC
Severity:
normal
Tags:
#984556#5
Date:
2021-03-04 23:51:56 UTC
From:
To:
Dear Maintainer,
"xterm_mouse_off(void)" are removed as they are already declared.

  The declarations of "ding()", "clrmsg()", and "gotoxy()" are removed as
they are already declared.

  The declarations of "tgoto(...)" and "clrline_noflush()" are removed as
they are already declared.

  Add "__attribute ((unused))" to the functions "catch_winch(...)" and
"rd_timeout(...)" as their parameter is not used.

  Change type of "completion" from "fct_type" to "fct_type_char_int".

  Add code instead of "cfmakeraw()" depending of the definition of
"__osf__".

  Fix a comparison between "int" and "unsigned int".

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 term.c | 39 +++++++++++++++++++++++++++------------
 1 file changed, 27 insertions(+), 12 deletions(-)

diff --git a/term.c b/term.c
index ed5158c..e15eb66 100644
--- a/term.c
+++ b/term.c
@@ -116,17 +116,18 @@ static int      nnstandout(int);

 static sig_type catch_winch(int n);