git: f8d14a44deb0 - main - if_usie: fix typo
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 21 Sep 2024 22:56:53 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=f8d14a44deb0bb0a3bde623bd9204212af12f938
commit f8d14a44deb0bb0a3bde623bd9204212af12f938
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2024-09-21 15:56:06 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2024-09-21 22:56:37 +0000
if_usie: fix typo
Fix a 'case AF_INET;' typo, and ensure we include 'opt_inet6.h' so #ifdef INET6
actually works.
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/dev/usb/net/if_usie.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys/dev/usb/net/if_usie.c b/sys/dev/usb/net/if_usie.c
index 193ed956595a..bcbf056f3844 100644
--- a/sys/dev/usb/net/if_usie.c
+++ b/sys/dev/usb/net/if_usie.c
@@ -27,6 +27,8 @@
* SUCH DAMAGE.
*/
+#include "opt_inet6.h"
+
#include <sys/param.h>
#include <sys/eventhandler.h>
#include <sys/systm.h>
@@ -1190,7 +1192,7 @@ usie_if_output(if_t ifp, struct mbuf *m, const struct sockaddr *dst,
switch (dst->sa_family) {
#ifdef INET6
- case AF_INET6;
+ case AF_INET6:
/* fall though */
#endif
case AF_INET: