Trying to fix compilation bustage:

- removing 'const' qualifier from an input parameter to conform to the type
  required by rw_assert();
- using in_addr->s_addr to retrive 32 bits address value.

Observed by:	tinderbox
This commit is contained in:
Tai-hwa Liang 2008-07-22 04:23:57 +00:00
parent 09400d5abe
commit df9cf830d1
2 changed files with 4 additions and 4 deletions

View File

@ -1299,13 +1299,13 @@ inp_ip_tos_set(struct inpcb *inp, int val)
}
void
inp_4tuple_get(const struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
inp_4tuple_get(struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
uint32_t *faddr, uint16_t *fp)
{
INP_LOCK_ASSERT(inp);
*laddr = inp->inp_laddr;
*faddr = inp->inp_faddr;
*laddr = inp->inp_laddr.s_addr;
*faddr = inp->inp_faddr.s_addr;
*lp = inp->inp_lport;
*fp = inp->inp_fport;
}

View File

@ -358,7 +358,7 @@ struct socket *
inp_inpcbtosocket(struct inpcb *inp);
struct tcpcb *
inp_inpcbtotcpcb(struct inpcb *inp);
void inp_4tuple_get(const struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
void inp_4tuple_get(struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
uint32_t *faddr, uint16_t *fp);
#endif /* _KERNEL */