git: 6cb5f1629e6f - main - net/sff8472.h: add double-include protection
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Apr 2025 03:32:35 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=6cb5f1629e6f89a468e34625fd4a35ce4585500f
commit 6cb5f1629e6f89a468e34625fd4a35ce4585500f
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-04-28 01:43:18 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-04-29 03:20:10 +0000
net/sff8472.h: add double-include protection
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D50051
---
sys/net/sff8472.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys/net/sff8472.h b/sys/net/sff8472.h
index 33b6dddb5b9f..1c8e8c1af2fb 100644
--- a/sys/net/sff8472.h
+++ b/sys/net/sff8472.h
@@ -26,6 +26,9 @@
* SUCH DAMAGE.
*/
+#ifndef _NET_SFF8472_H_
+#define _NET_SFF8472_H_
+
/*
* The following set of constants are from Document SFF-8472
* "Diagnostic Monitoring Interface for Optical Transceivers" revision
@@ -526,3 +529,5 @@ static const char *sff_8024_id[SFF_8024_ID_LAST + 1] = {
*/
#define SFF_8472_POWER_FACTOR 10000.0
+
+#endif