mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 07:12:52 -04:00
socket: Annotate sooptcopyin() and sooptcopyout() with __result_use_check
Just like we do with copyin() and copyout(). Reviewed by: glebius MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D53114 (cherry picked from commit 3509dcd11a982107d957b99f6740704e9c522bd8)
This commit is contained in:
parent
d779d823da
commit
ad9a9bec99
1 changed files with 4 additions and 2 deletions
|
|
@ -57,8 +57,10 @@ struct sockopt {
|
|||
|
||||
int sosetopt(struct socket *so, struct sockopt *sopt);
|
||||
int sogetopt(struct socket *so, struct sockopt *sopt);
|
||||
int sooptcopyin(struct sockopt *sopt, void *buf, size_t len, size_t minlen);
|
||||
int sooptcopyout(struct sockopt *sopt, const void *buf, size_t len);
|
||||
int __result_use_check sooptcopyin(struct sockopt *sopt, void *buf, size_t len,
|
||||
size_t minlen);
|
||||
int __result_use_check sooptcopyout(struct sockopt *sopt, const void *buf,
|
||||
size_t len);
|
||||
int soopt_getm(struct sockopt *sopt, struct mbuf **mp);
|
||||
int soopt_mcopyin(struct sockopt *sopt, struct mbuf *m);
|
||||
int soopt_mcopyout(struct sockopt *sopt, struct mbuf *m);
|
||||
|
|
|
|||
Loading…
Reference in a new issue