mirror of
https://git.savannah.gnu.org/git/inetutils.git
synced 2026-01-12 00:19:39 +08:00
Cleanup susp/ayt definitions, inspired by NetBSD.
sys_bsd.c:680:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
void ayt ();
^
sys_bsd.c:1003:1: note: conflicting prototype is here
ayt (int sig MAYBE_UNUSED)
^
This commit is contained in:
@@ -74,6 +74,9 @@ extern void ayt_status (void);
|
||||
extern void sendayt (void);
|
||||
#endif
|
||||
|
||||
void susp (int sig);
|
||||
void ayt (int sig);
|
||||
|
||||
int tout, /* Output file descriptor */
|
||||
tin, /* Input file descriptor */
|
||||
net;
|
||||
@@ -673,13 +676,6 @@ TerminalNewMode (int f)
|
||||
|
||||
if (f != -1)
|
||||
{
|
||||
#ifdef SIGTSTP
|
||||
void susp (int sig);
|
||||
#endif /* SIGTSTP */
|
||||
#ifdef SIGINFO
|
||||
void ayt ();
|
||||
#endif
|
||||
|
||||
#ifdef SIGTSTP
|
||||
signal (SIGTSTP, susp);
|
||||
#endif /* SIGTSTP */
|
||||
|
||||
Reference in New Issue
Block a user