Fix a few compile time warnings
This commit is contained in:
@@ -251,6 +251,7 @@ int for_ioctl;
|
||||
printf("ip_port->ip_dl.dl_eth.de_state= 0x%x",
|
||||
ip_port->ip_dl.dl_eth.de_state);
|
||||
ip_panic (( "strange status" ));
|
||||
return -1;
|
||||
}
|
||||
|
||||
PRIVATE void ipeth_set_ipaddr(ip_port)
|
||||
|
||||
@@ -417,7 +417,7 @@ size_t data_len;
|
||||
|
||||
if (ip_fd->if_flags & IFF_SEL_READ)
|
||||
{
|
||||
ip_fd->if_flags & ~IFF_SEL_READ;
|
||||
ip_fd->if_flags &= ~IFF_SEL_READ;
|
||||
if (ip_fd->if_select_res)
|
||||
ip_fd->if_select_res(ip_fd->if_srfd,
|
||||
SR_SELECT_READ);
|
||||
|
||||
@@ -2335,7 +2335,7 @@ tcp_fd_t *tcp_fd;
|
||||
dst_fd->tf_conn != NULL ||
|
||||
!(dst_fd->tf_flags & TFF_COOKIE))
|
||||
{
|
||||
printf("tcp_acceptto: bad flags 0x%x or conn %p for fd %d\n",
|
||||
printf("tcp_acceptto: bad flags 0x%lx or conn %p for fd %d\n",
|
||||
dst_fd->tf_flags, dst_fd->tf_conn, dst_nr);
|
||||
tcp_reply_ioctl(tcp_fd, EINVAL);
|
||||
return NW_OK;
|
||||
|
||||
@@ -580,7 +580,7 @@ tcp_conn_t *tcp_conn;
|
||||
printf("tc_fd NULL");
|
||||
else
|
||||
{
|
||||
printf("tc_fd #%d: flags 0x%x, r %u@%u, w %u@%u",
|
||||
printf("tc_fd #%d: flags 0x%lx, r %u@%u, w %u@%u",
|
||||
tcp_fd-tcp_fd_table, tcp_fd->tf_flags,
|
||||
tcp_fd->tf_read_count, tcp_fd->tf_read_offset,
|
||||
tcp_fd->tf_write_count, tcp_fd->tf_write_offset);
|
||||
|
||||
Reference in New Issue
Block a user