Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Appease GCC7 in sctp_asconf.h



details:   https://anonhg.NetBSD.org/src/rev/592dd2234584
branches:  trunk
changeset: 449157:592dd2234584
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sun Feb 24 17:01:52 2019 +0000

description:
Appease GCC7 in sctp_asconf.h

Do not declare types inside function parameter list.
Add decklarations of types before these function prototypes.

diffstat:

 sys/netinet/sctp_asconf.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r fbe11d9ab76e -r 592dd2234584 sys/netinet/sctp_asconf.h
--- a/sys/netinet/sctp_asconf.h Sun Feb 24 16:11:24 2019 +0000
+++ b/sys/netinet/sctp_asconf.h Sun Feb 24 17:01:52 2019 +0000
@@ -1,5 +1,5 @@
 /*     $KAME: sctp_asconf.h,v 1.8 2005/03/06 16:04:16 itojun Exp $     */
-/*     $NetBSD: sctp_asconf.h,v 1.1 2015/10/13 21:28:35 rjs Exp $ */
+/*     $NetBSD: sctp_asconf.h,v 1.2 2019/02/24 17:01:52 kamil Exp $ */
 
 #ifndef _NETINET_SCTP_ASCONF_H_
 #define _NETINET_SCTP_ASCONF_H_
@@ -36,6 +36,13 @@
 
 #if defined(_KERNEL)
 
+struct sctp_tcb;
+struct sctp_nets;
+struct sctp_asconf_chunk;
+struct sockaddr;
+struct sctp_inpcb;
+struct sctp_asconf_ack_chunk;
+
 extern void sctp_asconf_cleanup(struct sctp_tcb *, struct sctp_nets *);
 
 extern struct mbuf *sctp_compose_asconf(struct sctp_tcb *);



Home | Main Index | Thread Index | Old Index