Fix some compilation errors with the gcc compiler, fix some recent warnings.
This commit is contained in:
parent
55129194a3
commit
e24ed988d6
|
@ -1036,9 +1036,10 @@ register tty_t *tp; /* pointer to terminal to read from */
|
||||||
/*===========================================================================*
|
/*===========================================================================*
|
||||||
* in_process *
|
* in_process *
|
||||||
*===========================================================================*/
|
*===========================================================================*/
|
||||||
PRIVATE void in_process_send_byte(tp, ch)
|
PRIVATE void in_process_send_byte(
|
||||||
tty_t *tp; /* terminal on which character has arrived */
|
tty_t *tp, /* terminal on which character has arrived */
|
||||||
int ch; /* input character */
|
int ch /* input character */
|
||||||
|
)
|
||||||
{
|
{
|
||||||
/* Save the character in the input queue. */
|
/* Save the character in the input queue. */
|
||||||
*tp->tty_inhead++ = ch;
|
*tp->tty_inhead++ = ch;
|
||||||
|
|
|
@ -86,6 +86,8 @@ static int udp_sendto _ARGS(( int fd, const char *buf, unsigned buflen,
|
||||||
ipaddr_t addr, udpport_t port ));
|
ipaddr_t addr, udpport_t port ));
|
||||||
static int udp_receive _ARGS(( int fd, char *buf, unsigned buflen,
|
static int udp_receive _ARGS(( int fd, char *buf, unsigned buflen,
|
||||||
time_t timeout ));
|
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 */
|
#endif /* !_MINIX */
|
||||||
|
|
||||||
|
@ -755,10 +757,7 @@ static int tcp_connect(ipaddr_t host, tcpport_t port, int *terrno)
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tcpip_writeall(fd, buf, siz)
|
static int tcpip_writeall(int fd, const char *buf, size_t siz)
|
||||||
int fd;
|
|
||||||
const char *buf;
|
|
||||||
size_t siz;
|
|
||||||
{
|
{
|
||||||
size_t siz_org;
|
size_t siz_org;
|
||||||
int nbytes;
|
int nbytes;
|
||||||
|
|
|
@ -10,9 +10,5 @@ extern int diag_size; /* size of all messages */
|
||||||
extern int sys_panic; /* if set, shutdown can be done */
|
extern int sys_panic; /* if set, shutdown can be done */
|
||||||
|
|
||||||
/* The parameters of the call are kept here. */
|
/* 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 */
|
extern int dont_reply; /* normally 0; set to 1 to inhibit reply */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue