diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-03-18 23:18:11 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-03 00:22:08 +0200 |
commit | 0209b2c932994e9ca55d39d98a83ea02aacd1332 (patch) | |
tree | f8778cca656943ee36193b49a7727557ba82319b /term/munge.c | |
parent | 6f3d68bc8b46bdc7b0f5f43918744d99746672a2 (diff) | |
download | hurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.tar.gz hurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.tar.bz2 hurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.zip |
Modernize code by removing use of old style definitions.
Also add -Werror=old-style-definition to enforce new code.
Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
Diffstat (limited to 'term/munge.c')
-rw-r--r-- | term/munge.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/term/munge.c b/term/munge.c index e0e90453..3b304605 100644 --- a/term/munge.c +++ b/term/munge.c @@ -192,7 +192,7 @@ echo_double (char c, int quoted) /* Do a single C-h SPC C-h sequence */ static inline void -write_erase_sequence () +write_erase_sequence (void) { poutput ('\b'); poutput (' '); @@ -236,7 +236,7 @@ echo_char (char c, int hderase, int quoted) /* Re-echo the current rawq preceded by the VREPRINT char. */ static inline void -reprint_line () +reprint_line (void) { short *cp; @@ -613,7 +613,7 @@ alldone: /* This is called by the lower half when a break is received. */ void -input_break () +input_break (void) { struct queue **qp = termstate.c_lflag & ICANON ? &rawq : &inputq; @@ -663,7 +663,7 @@ input_framing_error (int c) /* Copy the characters in RAWQ to the end of INPUTQ and clear RAWQ. */ void -copy_rawq () +copy_rawq (void) { while (qsize (rawq)) enqueue (&inputq, dequeue (rawq)); @@ -671,7 +671,7 @@ copy_rawq () /* Process all the characters in INPUTQ as if they had just been read. */ void -rescan_inputq () +rescan_inputq (void) { short *buf; int i, n; @@ -687,7 +687,7 @@ rescan_inputq () error_t -drop_output () +drop_output (void) { error_t err = (*bottom->abandon_physical_output) (); if (!err) @@ -697,7 +697,7 @@ drop_output () error_t -drain_output () +drain_output (void) { int cancel = 0; |