aboutsummaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-04-08 01:03:31 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-08 10:55:59 +0200
commita096270c77b1f6461a2ef58660ad9cfa9cbb32bb (patch)
treeb9c713ad70ae6705a1dfe6d76c35c0d918515d2e /term
parent5de1b81f0bb24ba38d0a819bba9bd526863b5385 (diff)
downloadhurd-a096270c77b1f6461a2ef58660ad9cfa9cbb32bb.tar.gz
hurd-a096270c77b1f6461a2ef58660ad9cfa9cbb32bb.tar.bz2
hurd-a096270c77b1f6461a2ef58660ad9cfa9cbb32bb.zip
Further modernize Hurd code by enforcing strict prototypes and no implicit function declarations.
Most of the changes land in one of these buckets: * Removed unused declarations. * Used (void) to represent no parameters instead of () which means an undeterminate number of parameters. * Included missing header files whenever necessary (stdlib.h, sys/mman.h, etc) * Typedefed function pointers to be able to fully declare the parameter types. * Added declarations of library functions that are used elsewhere (example is libps/ps.h). * Made functions static whenever they are only used in that file. * Forwarded declarations of some methods that were made static. Message-Id: <ZDD1o7/tVYeZew+G@jupiter.tail36e24.ts.net>
Diffstat (limited to 'term')
-rw-r--r--term/devio.c2
-rw-r--r--term/hurdio.c2
-rw-r--r--term/term.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/term/devio.c b/term/devio.c
index 6024acc2..65dea5d5 100644
--- a/term/devio.c
+++ b/term/devio.c
@@ -98,7 +98,7 @@ static int output_stopped;
static int char_size_mask_xxx = 0xff;
/* Forward */
-static error_t devio_desert_dtr ();
+static error_t devio_desert_dtr (void);
static error_t
devio_init (void)
diff --git a/term/hurdio.c b/term/hurdio.c
index 20a939f3..b4ef7c41 100644
--- a/term/hurdio.c
+++ b/term/hurdio.c
@@ -82,7 +82,7 @@ static pthread_cond_t hurdio_assert_dtr_condition;
/* Forward */
-static error_t hurdio_desert_dtr ();
+static error_t hurdio_desert_dtr (void);
static void *hurdio_reader_loop (void *arg);
static void *hurdio_writer_loop (void *arg);
static error_t hurdio_set_bits (struct termios *state);
diff --git a/term/term.h b/term/term.h
index 1e6be5f2..d68598d0 100644
--- a/term/term.h
+++ b/term/term.h
@@ -374,7 +374,7 @@ void report_carrier_error (error_t);
/* Other decls */
error_t drop_output (void);
void send_signal (int);
-error_t drain_output ();
+error_t drain_output (void);
void output_character (int);
void copy_rawq (void);
void rescan_inputq (void);