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:
hsu 2003-08-05 00:27:54 +00:00
parent 7bf5fa9caf
commit fb82c18f66
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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);