From 6607aca9658b408f28979d275c7f9d5a803be99e Mon Sep 17 00:00:00 2001
From: tuexen <tuexen@FreeBSD.org>
Date: Tue, 2 Dec 2014 20:29:29 +0000
Subject: 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
---
 sys/netinet/sctp_os_bsd.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'sys/netinet/sctp_os_bsd.h')

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;
 
-- 
cgit v1.1