Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use correct-semantic byteorder(9) functions to p...



details:   https://anonhg.NetBSD.org/src/rev/414e807f87c6
branches:  trunk
changeset: 971579:414e807f87c6
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Tue Apr 28 17:26:01 2020 +0000

description:
Use correct-semantic byteorder(9) functions to provide letoh*() in msk(4)

diffstat:

 sys/dev/pci/if_msk.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 792414255662 -r 414e807f87c6 sys/dev/pci/if_msk.c
--- a/sys/dev/pci/if_msk.c      Tue Apr 28 17:15:48 2020 +0000
+++ b/sys/dev/pci/if_msk.c      Tue Apr 28 17:26:01 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_msk.c,v 1.102 2020/04/28 17:15:48 jakllsch Exp $ */
+/* $NetBSD: if_msk.c,v 1.103 2020/04/28 17:26:01 jakllsch Exp $ */
 /*     $OpenBSD: if_msk.c,v 1.79 2009/10/15 17:54:56 deraadt Exp $     */
 
 /*
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.102 2020/04/28 17:15:48 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.103 2020/04/28 17:26:01 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -68,8 +68,8 @@
 #include <sys/sysctl.h>
 #include <sys/endian.h>
 #ifdef __NetBSD__
- #define letoh16 htole16
- #define letoh32 htole32
+ #define letoh16 le16toh
+ #define letoh32 le32toh
 #endif
 
 #include <net/if.h>



Home | Main Index | Thread Index | Old Index