summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorguenther <>2014-07-21 01:51:11 +0000
committerguenther <>2014-07-21 01:51:11 +0000
commita1d8bc2426c6d8556e2b50d906d47733bcb192f8 (patch)
treee8186a78da535872b07b3274820c1af648098427 /src/lib
parentf34324d947b29b5a35a325bbd3901294355b4f39 (diff)
downloadopenbsd-a1d8bc2426c6d8556e2b50d906d47733bcb192f8.tar.gz
openbsd-a1d8bc2426c6d8556e2b50d906d47733bcb192f8.tar.bz2
openbsd-a1d8bc2426c6d8556e2b50d906d47733bcb192f8.zip
Switch from <sys/endian.h> or <machine/endian.h> to the new,
being-standardized <endian.h> ok deraadt@ millert@ beck@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/net/htonl.c4
-rw-r--r--src/lib/libc/net/htons.c4
-rw-r--r--src/lib/libc/net/ntohl.c4
-rw-r--r--src/lib/libc/net/ntohs.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libc/net/htonl.c b/src/lib/libc/net/htonl.c
index 5ab4189597..6ee6e7efbf 100644
--- a/src/lib/libc/net/htonl.c
+++ b/src/lib/libc/net/htonl.c
@@ -1,11 +1,11 @@
1/* $OpenBSD: htonl.c,v 1.6 2005/08/06 20:30:03 espie Exp $ */ 1/* $OpenBSD: htonl.c,v 1.7 2014/07/21 01:51:10 guenther Exp $ */
2/* 2/*
3 * Written by J.T. Conklin <jtc@netbsd.org>. 3 * Written by J.T. Conklin <jtc@netbsd.org>.
4 * Public domain. 4 * Public domain.
5 */ 5 */
6 6
7#include <sys/types.h> 7#include <sys/types.h>
8#include <machine/endian.h> 8#include <endian.h>
9 9
10#undef htonl 10#undef htonl
11 11
diff --git a/src/lib/libc/net/htons.c b/src/lib/libc/net/htons.c
index c8b73fdbb7..f48d91ee03 100644
--- a/src/lib/libc/net/htons.c
+++ b/src/lib/libc/net/htons.c
@@ -1,11 +1,11 @@
1/* $OpenBSD: htons.c,v 1.8 2005/08/06 20:30:03 espie Exp $ */ 1/* $OpenBSD: htons.c,v 1.9 2014/07/21 01:51:10 guenther Exp $ */
2/* 2/*
3 * Written by J.T. Conklin <jtc@netbsd.org>. 3 * Written by J.T. Conklin <jtc@netbsd.org>.
4 * Public domain. 4 * Public domain.
5 */ 5 */
6 6
7#include <sys/types.h> 7#include <sys/types.h>
8#include <machine/endian.h> 8#include <endian.h>
9 9
10#undef htons 10#undef htons
11 11
diff --git a/src/lib/libc/net/ntohl.c b/src/lib/libc/net/ntohl.c
index 36414b7a13..0d05bac78a 100644
--- a/src/lib/libc/net/ntohl.c
+++ b/src/lib/libc/net/ntohl.c
@@ -1,11 +1,11 @@
1/* $OpenBSD: ntohl.c,v 1.6 2005/08/06 20:30:03 espie Exp $ */ 1/* $OpenBSD: ntohl.c,v 1.7 2014/07/21 01:51:10 guenther Exp $ */
2/* 2/*
3 * Written by J.T. Conklin <jtc@netbsd.org>. 3 * Written by J.T. Conklin <jtc@netbsd.org>.
4 * Public domain. 4 * Public domain.
5 */ 5 */
6 6
7#include <sys/types.h> 7#include <sys/types.h>
8#include <machine/endian.h> 8#include <endian.h>
9 9
10#undef ntohl 10#undef ntohl
11 11
diff --git a/src/lib/libc/net/ntohs.c b/src/lib/libc/net/ntohs.c
index 8f345e84ad..b5ea361f83 100644
--- a/src/lib/libc/net/ntohs.c
+++ b/src/lib/libc/net/ntohs.c
@@ -1,11 +1,11 @@
1/* $OpenBSD: ntohs.c,v 1.8 2005/08/06 20:30:03 espie Exp $ */ 1/* $OpenBSD: ntohs.c,v 1.9 2014/07/21 01:51:10 guenther Exp $ */
2/* 2/*
3 * Written by J.T. Conklin <jtc@netbsd.org>. 3 * Written by J.T. Conklin <jtc@netbsd.org>.
4 * Public domain. 4 * Public domain.
5 */ 5 */
6 6
7#include <sys/types.h> 7#include <sys/types.h>
8#include <machine/endian.h> 8#include <endian.h>
9 9
10#undef ntohs 10#undef ntohs
11 11