diff options
author | guenther <guenther@openbsd.org> | 2014-07-21 01:51:10 +0000 |
---|---|---|
committer | guenther <guenther@openbsd.org> | 2014-07-21 01:51:10 +0000 |
commit | be9b70502a319be1934f8cfd5be7f470be741ce6 (patch) | |
tree | cd6b19aae8d5ed5b62dea268c748e3a6bbb05279 /usr.sbin/npppd | |
parent | sync (diff) | |
download | wireguard-openbsd-be9b70502a319be1934f8cfd5be7f470be741ce6.tar.xz wireguard-openbsd-be9b70502a319be1934f8cfd5be7f470be741ce6.zip |
Switch from <sys/endian.h> or <machine/endian.h> to the new,
being-standardized <endian.h>
ok deraadt@ millert@ beck@
Diffstat (limited to 'usr.sbin/npppd')
-rw-r--r-- | usr.sbin/npppd/l2tp/l2tp_ctrl.c | 6 | ||||
-rw-r--r-- | usr.sbin/npppd/npppd/mppe.c | 6 | ||||
-rw-r--r-- | usr.sbin/npppd/pppoe/pppoe.h | 4 | ||||
-rw-r--r-- | usr.sbin/npppd/pppoe/pppoed.c | 6 |
4 files changed, 11 insertions, 11 deletions
diff --git a/usr.sbin/npppd/l2tp/l2tp_ctrl.c b/usr.sbin/npppd/l2tp/l2tp_ctrl.c index 012e889a938..802da768c1b 100644 --- a/usr.sbin/npppd/l2tp/l2tp_ctrl.c +++ b/usr.sbin/npppd/l2tp/l2tp_ctrl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: l2tp_ctrl.c,v 1.17 2014/05/07 01:20:53 tedu Exp $ */ +/* $OpenBSD: l2tp_ctrl.c,v 1.18 2014/07/21 01:51:11 guenther Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -26,15 +26,15 @@ * SUCH DAMAGE. */ /**@file Control connection processing functions for L2TP LNS */ -/* $Id: l2tp_ctrl.c,v 1.17 2014/05/07 01:20:53 tedu Exp $ */ +/* $Id: l2tp_ctrl.c,v 1.18 2014/07/21 01:51:11 guenther Exp $ */ #include <sys/types.h> #include <sys/param.h> #include <sys/time.h> #include <sys/socket.h> -#include <sys/endian.h> #include <netinet/in.h> #include <net/if.h> #include <arpa/inet.h> +#include <endian.h> #include <errno.h> #include <event.h> #include <ifaddrs.h> diff --git a/usr.sbin/npppd/npppd/mppe.c b/usr.sbin/npppd/npppd/mppe.c index 1e766d14c96..40eff5ef06a 100644 --- a/usr.sbin/npppd/npppd/mppe.c +++ b/usr.sbin/npppd/npppd/mppe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mppe.c,v 1.10 2013/02/13 22:10:38 yasuoka Exp $ */ +/* $OpenBSD: mppe.c,v 1.11 2014/07/21 01:51:11 guenther Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -/* $Id: mppe.c,v 1.10 2013/02/13 22:10:38 yasuoka Exp $ */ +/* $Id: mppe.c,v 1.11 2014/07/21 01:51:11 guenther Exp $ */ /**@file * * The implementation of MPPE(Microsoft Point-To-Point Encryption Protocol) @@ -37,11 +37,11 @@ #define WORKAROUND_OUT_OF_SEQUENCE_PPP_FRAMING 1 #include <sys/types.h> -#include <sys/endian.h> #include <sys/socket.h> #include <sys/time.h> #include <net/if_dl.h> #include <netinet/in.h> +#include <endian.h> #include <stdlib.h> #include <stdio.h> #include <stdarg.h> diff --git a/usr.sbin/npppd/pppoe/pppoe.h b/usr.sbin/npppd/pppoe/pppoe.h index 6c3c04e1f40..da36e480588 100644 --- a/usr.sbin/npppd/pppoe/pppoe.h +++ b/usr.sbin/npppd/pppoe/pppoe.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pppoe.h,v 1.5 2012/09/18 13:14:08 yasuoka Exp $ */ +/* $OpenBSD: pppoe.h,v 1.6 2014/07/21 01:51:11 guenther Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -62,7 +62,7 @@ /** PPPoE Protocol Header */ struct pppoe_header { -#if _BYTE_ORDER == _BIG_ENDIAN +#if BYTE_ORDER == BIG_ENDIAN uint8_t ver:4, type:4; #else uint8_t type:4, ver:4; diff --git a/usr.sbin/npppd/pppoe/pppoed.c b/usr.sbin/npppd/pppoe/pppoed.c index d20e99bdbe1..1666b647420 100644 --- a/usr.sbin/npppd/pppoe/pppoed.c +++ b/usr.sbin/npppd/pppoe/pppoed.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pppoed.c,v 1.14 2014/03/22 04:18:18 yasuoka Exp $ */ +/* $OpenBSD: pppoed.c,v 1.15 2014/07/21 01:51:11 guenther Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -28,11 +28,10 @@ /**@file * This file provides the PPPoE(RFC2516) server(access concentrator) * implementaion. - * $Id: pppoed.c,v 1.14 2014/03/22 04:18:18 yasuoka Exp $ + * $Id: pppoed.c,v 1.15 2014/07/21 01:51:11 guenther Exp $ */ #include <sys/types.h> #include <sys/param.h> -#include <sys/endian.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <sys/uio.h> @@ -47,6 +46,7 @@ #include <net/if_dl.h> #include <net/ethertypes.h> #include <net/bpf.h> +#include <endian.h> #include <string.h> #include <syslog.h> #include <stdio.h> |