aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2024-10-10 08:42:35 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2024-10-31 11:40:03 +0000
commitebdee305b160223fd3f7f5357f649dedb8805fa7 (patch)
tree7a5b4c506f76ca3e1331d3c2855e4138ce2bdd99
parentd3459fe7f737f7168992e833fdad7d3aa1f01bc9 (diff)
sctp: make sctp_free_ifn() static
It is not used outside of the file. No functional change intended. (cherry picked from commit e1a09d1e9df30347c279604191a04ce2ef20bf0c)
-rw-r--r--sys/netinet/sctp_pcb.c2
-rw-r--r--sys/netinet/sctp_pcb.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index 2972b0a925d6..f89865456274 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -239,7 +239,7 @@ sctp_free_vrf(struct sctp_vrf *vrf)
}
}
-void
+static void
sctp_free_ifn(struct sctp_ifn *sctp_ifnp)
{
if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(&sctp_ifnp->refcount)) {
diff --git a/sys/netinet/sctp_pcb.h b/sys/netinet/sctp_pcb.h
index ade29fb3544d..ed6a1c34ccf7 100644
--- a/sys/netinet/sctp_pcb.h
+++ b/sys/netinet/sctp_pcb.h
@@ -508,7 +508,6 @@ sctp_add_addr_to_vrf(uint32_t vrfid,
void sctp_update_ifn_mtu(uint32_t ifn_index, uint32_t mtu);
-void sctp_free_ifn(struct sctp_ifn *sctp_ifnp);
void sctp_free_ifa(struct sctp_ifa *sctp_ifap);
void