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:
Simon Josefsson
2024-07-18 09:33:03 +02:00
parent 3b0f9a276e
commit b2e9902ee0

View File

@@ -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 */