Fix a few compile time warnings

This commit is contained in:
Thomas Veerman
2010-07-02 12:41:19 +00:00
parent 9a37f63263
commit 34a2864e27
25 changed files with 99 additions and 90 deletions
+1
View File
@@ -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)
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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);