Module Name:    src
Committed By:   yamaguchi
Date:           Wed May 19 01:54:09 UTC 2021

Modified Files:
        src/sys/net: if_spppsubr.c

Log Message:
remove a wrong ntohs().

The variable is already host-byte-order.


To generate a diff of this commit:
cvs rdiff -u -r1.242 -r1.243 src/sys/net/if_spppsubr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_spppsubr.c
diff -u src/sys/net/if_spppsubr.c:1.242 src/sys/net/if_spppsubr.c:1.243
--- src/sys/net/if_spppsubr.c:1.242	Wed May 19 01:42:35 2021
+++ src/sys/net/if_spppsubr.c	Wed May 19 01:54:09 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_spppsubr.c,v 1.242 2021/05/19 01:42:35 yamaguchi Exp $	 */
+/*	$NetBSD: if_spppsubr.c,v 1.243 2021/05/19 01:54:09 yamaguchi Exp $	 */
 
 /*
  * Synchronous PPP/Cisco link level subroutines.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.242 2021/05/19 01:42:35 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.243 2021/05/19 01:54:09 yamaguchi Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -717,7 +717,7 @@ sppp_input(struct ifnet *ifp, struct mbu
 		if (debug)
 			log(LOG_DEBUG,
 			    "%s: invalid input protocol "
-			    "<proto=0x%x>\n", ifp->if_xname, ntohs(protocol));
+			    "<proto=0x%x>\n", ifp->if_xname, protocol);
 		if_statinc(ifp, if_noproto);
 		goto drop;
 	default:

Reply via email to