Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net remove a wrong ntohs().



details:   https://anonhg.NetBSD.org/src/rev/951fd307edb4
branches:  trunk
changeset: 379203:951fd307edb4
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Wed May 19 01:54:09 2021 +0000

description:
remove a wrong ntohs().

The variable is already host-byte-order.

diffstat:

 sys/net/if_spppsubr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d0feb748c8f4 -r 951fd307edb4 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Wed May 19 01:42:35 2021 +0000
+++ b/sys/net/if_spppsubr.c     Wed May 19 01:54:09 2021 +0000
@@ -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:



Home | Main Index | Thread Index | Old Index