summaryrefslogtreecommitdiff
path: root/zwgc/mux.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-01-21 03:11:44 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-01-21 03:11:44 +0000
commitb6ea75cfc9712b77a0886c4348d6fb519641e40e (patch)
tree65f68bb2db7c6118e80670cd5edc297159f43409 /zwgc/mux.c
parent71f70d3066d1c038e1794c4ffe804591eda3d1af (diff)
de K&Rify, fix prototypes
Diffstat (limited to 'zwgc/mux.c')
-rw-r--r--zwgc/mux.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/zwgc/mux.c b/zwgc/mux.c
index 0e37ebc..341e6e6 100644
--- a/zwgc/mux.c
+++ b/zwgc/mux.c
@@ -62,10 +62,10 @@ static int max_source = -1;
*/
static fd_set input_sources;
-static void (*input_handler[MAX_SOURCES])();
+static void (*input_handler[MAX_SOURCES])(void *);
static pointer input_handler_arg[MAX_SOURCES];
-static int check_tty();
+static int check_tty(void);
/*
* void mux_init()
@@ -74,7 +74,8 @@ static int check_tty();
* any other mux call.
*/
-void mux_init()
+void
+mux_init(void)
{
int i;
@@ -96,10 +97,10 @@ void mux_init()
* argument arg.
*/
-void mux_add_input_source(descriptor, handler, arg)
- int descriptor;
- void (*handler)();
- pointer arg;
+void
+mux_add_input_source(int descriptor,
+ void (*handler)(void *),
+ pointer arg)
{
#ifdef DEBUG
if(descriptor < 0 || descriptor >= MAX_SOURCES)
@@ -128,7 +129,8 @@ void mux_add_input_source(descriptor, handler, arg)
* true, we return.
*/
-void mux_loop()
+void
+mux_loop(void)
{
int i, nfds;
fd_set inputs, outputs;
@@ -203,7 +205,8 @@ void mux_loop()
}
}
-static int check_tty()
+static int
+check_tty(void)
{
register int result;
int pgrp;