From: Kees van Reeuwijk Date: Thu, 22 Apr 2010 13:59:34 +0000 (+0000) Subject: Fix some compilation errors with the gcc compiler, fix some recent warnings. X-Git-Tag: v3.1.7~130 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/dnssec-revoke.html?a=commitdiff_plain;h=e24ed988d680a65c1fb81679f1767e93551332de;p=minix.git Fix some compilation errors with the gcc compiler, fix some recent warnings. --- diff --git a/drivers/tty/tty.c b/drivers/tty/tty.c index 78e595b51..ceadd5f7e 100644 --- a/drivers/tty/tty.c +++ b/drivers/tty/tty.c @@ -1036,9 +1036,10 @@ register tty_t *tp; /* pointer to terminal to read from */ /*===========================================================================* * in_process * *===========================================================================*/ -PRIVATE void in_process_send_byte(tp, ch) -tty_t *tp; /* terminal on which character has arrived */ -int ch; /* input character */ +PRIVATE void in_process_send_byte( + tty_t *tp, /* terminal on which character has arrived */ + int ch /* input character */ +) { /* Save the character in the input queue. */ *tp->tty_inhead++ = ch; diff --git a/lib/libc/ip/res_send.c b/lib/libc/ip/res_send.c index 5bc3101f9..7e5c47c17 100644 --- a/lib/libc/ip/res_send.c +++ b/lib/libc/ip/res_send.c @@ -86,6 +86,8 @@ static int udp_sendto _ARGS(( int fd, const char *buf, unsigned buflen, ipaddr_t addr, udpport_t port )); static int udp_receive _ARGS(( int fd, char *buf, unsigned buflen, time_t timeout )); +static int tcpip_writeall _ARGS((int fd, const char *buf, size_t siz)); +static int tcp_connect _ARGS((ipaddr_t host, tcpport_t port, int *terrno)); #endif /* !_MINIX */ @@ -755,10 +757,7 @@ static int tcp_connect(ipaddr_t host, tcpport_t port, int *terrno) return fd; } -static int tcpip_writeall(fd, buf, siz) -int fd; -const char *buf; -size_t siz; +static int tcpip_writeall(int fd, const char *buf, size_t siz) { size_t siz_org; int nbytes; diff --git a/servers/is/glo.h b/servers/is/glo.h index 718e0e3d0..ad5b06d70 100644 --- a/servers/is/glo.h +++ b/servers/is/glo.h @@ -10,9 +10,5 @@ extern int diag_size; /* size of all messages */ extern int sys_panic; /* if set, shutdown can be done */ /* The parameters of the call are kept here. */ -extern message m_in; /* the input message itself */ -extern message m_out; /* the output message used for reply */ -extern int who_e; /* caller's proc number */ -extern int callnr; /* system call number */ extern int dont_reply; /* normally 0; set to 1 to inhibit reply */