sigh -- review one one pointless sys/param.h, and discover all the includes
authorderaadt <deraadt@openbsd.org>
Fri, 3 Sep 2021 08:18:31 +0000 (08:18 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 3 Sep 2021 08:18:31 +0000 (08:18 +0000)
are a mess.

usr.sbin/pppd/sys-bsd.c

index 4668c3c..4564327 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: sys-bsd.c,v 1.30 2020/12/29 19:45:28 benno Exp $      */
+/*     $OpenBSD: sys-bsd.c,v 1.31 2021/09/03 08:18:31 deraadt Exp $    */
 
 /*
  * sys-bsd.c - System-dependent procedures for setting up
  * TODO:
  */
 
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <sys/socket.h>
+#include <sys/time.h>
+#include <sys/stat.h>
+
 #include <stdio.h>
 #include <syslog.h>
 #include <string.h>
 #include <termios.h>
 #include <signal.h>
 #include <util.h>
-#include <sys/ioctl.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <sys/stat.h>
 #include <ifaddrs.h>
 
 #ifdef PPP_FILTER
 #include <net/route.h>
 #include <net/if_dl.h>
 #include <netinet/in.h>
-
-#if RTM_VERSION >= 3
-#include <sys/param.h>
-#if defined(NetBSD) && (NetBSD >= 199703)
-#include <netinet/if_inarp.h>
-#else  /* NetBSD 1.2D or later */
-#if defined(__FreeBSD__) || defined(__OpenBSD__)
 #include <netinet/if_ether.h>
-#else
-#include <net/if_ether.h>
-#endif
-#endif
-#endif
 
 #include "pppd.h"
 #include "fsm.h"