Make the second argument to sooptcopyout() constant in order to
simplify the upcoming PIM patches. Submitted by: Pavlin Radoslavov <pavlin@icir.org>
This commit is contained in:
parent
7bf5fa9caf
commit
fb82c18f66
@ -1425,10 +1425,7 @@ bad:
|
||||
|
||||
/* Helper routine for getsockopt */
|
||||
int
|
||||
sooptcopyout(sopt, buf, len)
|
||||
struct sockopt *sopt;
|
||||
void *buf;
|
||||
size_t len;
|
||||
sooptcopyout(struct sockopt *sopt, const void *buf, size_t len)
|
||||
{
|
||||
int error;
|
||||
size_t valsize;
|
||||
|
@ -401,7 +401,7 @@ int solisten(struct socket *so, int backlog, struct thread *td);
|
||||
struct socket *
|
||||
sonewconn(struct socket *head, int connstatus);
|
||||
int sooptcopyin(struct sockopt *sopt, void *buf, size_t len, size_t minlen);
|
||||
int sooptcopyout(struct sockopt *sopt, void *buf, size_t len);
|
||||
int sooptcopyout(struct sockopt *sopt, const void *buf, size_t len);
|
||||
|
||||
/* XXX; prepare mbuf for (__FreeBSD__ < 3) routines. */
|
||||
int soopt_getm(struct sockopt *sopt, struct mbuf **mp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user