Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Mar 2021 17:47:20 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 3fca90af438a - main - net80211: ratectl header guard against multiple inclusions
Message-ID:  <202103071747.127HlKDQ058581@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=3fca90af438ac4232d6b33ee4874297089997dd6

commit 3fca90af438ac4232d6b33ee4874297089997dd6
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-03-07 17:35:58 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-03-07 17:35:58 +0000

    net80211: ratectl header guard against multiple inclusions
    
    Add missing #ifndef/#define/#endif guards against multiple inclusions
    to ieee80211_ratectl.h as they are missing.
    
    MFC after:      3 days
    Sponsored-by:   Rubicon Communications, LLC ("Netgate")
---
 sys/net80211/ieee80211_ratectl.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys/net80211/ieee80211_ratectl.h b/sys/net80211/ieee80211_ratectl.h
index d147421a0364..6890e74bf518 100644
--- a/sys/net80211/ieee80211_ratectl.h
+++ b/sys/net80211/ieee80211_ratectl.h
@@ -27,6 +27,9 @@
  * $FreeBSD$
  */
 
+#ifndef _NET80211_IEEE80211_RATECTL_H_
+#define _NET80211_IEEE80211_RATECTL_H_
+
 enum ieee80211_ratealgs {
 	IEEE80211_RATECTL_AMRR		= 0,
 	IEEE80211_RATECTL_RSSADAPT	= 1,
@@ -169,3 +172,5 @@ ieee80211_ratectl_node_stats(struct ieee80211_node *ni, struct sbuf *s)
 		return;
 	vap->iv_rate->ir_node_stats(ni, s);
 }
+
+#endif	/* _NET80211_IEEE80211_RATECTL_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103071747.127HlKDQ058581>