diff options
author | tuexen <tuexen@FreeBSD.org> | 2014-12-02 20:29:29 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2014-12-02 20:29:29 +0000 |
commit | 6607aca9658b408f28979d275c7f9d5a803be99e (patch) | |
tree | 22e40559c9fbf2d130277c086e440c10c710022c /sys/netinet/sctp_os_bsd.h | |
parent | d5b2a401e7c0799f096aa2c6ec7e547187fc2a00 (diff) | |
download | FreeBSD-src-6607aca9658b408f28979d275c7f9d5a803be99e.zip FreeBSD-src-6607aca9658b408f28979d275c7f9d5a803be99e.tar.gz |
Do the renaming of sb_cc to sb_ccc in a way with less code changes by
using a macro.
This is an alternate approach to
https://svnweb.freebsd.org/changeset/base/275326
which is easier to handle upstream.
Discussed with: rrs, glebius
Diffstat (limited to 'sys/netinet/sctp_os_bsd.h')
-rw-r--r-- | sys/netinet/sctp_os_bsd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h index 69ecf40..9d54663 100644 --- a/sys/netinet/sctp_os_bsd.h +++ b/sys/netinet/sctp_os_bsd.h @@ -393,13 +393,15 @@ typedef struct callout sctp_os_timer_t; #define SCTP_CLEAR_SO_NBIO(so) ((so)->so_state &= ~SS_NBIO) /* get the socket type */ #define SCTP_SO_TYPE(so) ((so)->so_type) +/* Use a macro for renaming sb_cc to sb_ccc */ +#define sb_cc sb_ccc /* reserve sb space for a socket */ #define SCTP_SORESERVE(so, send, recv) soreserve(so, send, recv) /* wakeup a socket */ #define SCTP_SOWAKEUP(so) wakeup(&(so)->so_timeo) /* clear the socket buffer state */ #define SCTP_SB_CLEAR(sb) \ - (sb).sb_ccc = 0; \ + (sb).sb_cc = 0; \ (sb).sb_mb = NULL; \ (sb).sb_mbcnt = 0; |