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/1b8f5c18f8e9
branches:  trunk
changeset: 1021234:1b8f5c18f8e9
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 751baef1fc87 -r 1b8f5c18f8e9 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 @@
                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