Fix some compilation errors with the gcc compiler, fix some recent warnings.
This commit is contained in:
parent
55129194a3
commit
e24ed988d6
3 changed files with 7 additions and 11 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue