diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c index 7f3d417f9851..d49418230083 100644 --- a/usr.sbin/rtadvd/config.c +++ b/usr.sbin/rtadvd/config.c @@ -37,9 +37,7 @@ #include #include -#if defined(__FreeBSD__) && __FreeBSD__ >= 3 #include -#endif /* __FreeBSD__ >= 3 */ #include #include @@ -56,9 +54,6 @@ #include #include #include -#if defined(__NetBSD__) || defined(__OpenBSD__) -#include -#endif #include #include diff --git a/usr.sbin/rtadvd/dump.c b/usr.sbin/rtadvd/dump.c index bd196871e9c9..65e7ca2d5f3c 100644 --- a/usr.sbin/rtadvd/dump.c +++ b/usr.sbin/rtadvd/dump.c @@ -34,9 +34,7 @@ #include #include -#if defined(__FreeBSD__) && __FreeBSD__ >= 3 #include -#endif /* __FreeBSD__ >= 3 */ #include #include @@ -66,12 +64,6 @@ extern struct rainfo *ralist; static char *ether_str __P((struct sockaddr_dl *)); static void if_dump __P((void)); -#ifdef __FreeBSD__ /* XXX: see PORTABILITY */ -#define LONGLONG "%qu" -#else -#define LONGLONG "%llu" -#endif - static char *rtpref_str[] = { "medium", /* 00 */ "high", /* 01 */ @@ -130,11 +122,11 @@ if_dump() /* statistics */ fprintf(fp, " statistics: RA(out/in/inconsistent): " - LONGLONG "/" LONGLONG "/" LONGLONG ", ", + "%llu/%llu/%llu, ", (unsigned long long)rai->raoutput, (unsigned long long)rai->rainput, (unsigned long long)rai->rainconsistent); - fprintf(fp, "RS(input): " LONGLONG "\n", + fprintf(fp, "RS(input): %llu\n", (unsigned long long)rai->rsinput); /* interface information */ diff --git a/usr.sbin/rtadvd/if.c b/usr.sbin/rtadvd/if.c index f483ff4ef43b..a6517f248ca3 100644 --- a/usr.sbin/rtadvd/if.c +++ b/usr.sbin/rtadvd/if.c @@ -36,23 +36,12 @@ #include #include #include -#ifdef __FreeBSD__ -# include -#endif +#include #include -#ifdef __NetBSD__ -#include -#endif #include #include #include #include -#ifdef __bsdi__ -# include -#endif -#ifdef __OpenBSD__ -#include -#endif #include #include #include diff --git a/usr.sbin/rtadvd/if.h b/usr.sbin/rtadvd/if.h index 23f9a989a3b2..07bb6eeb4b97 100644 --- a/usr.sbin/rtadvd/if.h +++ b/usr.sbin/rtadvd/if.h @@ -1,5 +1,5 @@ /* $FreeBSD$ */ -/* $KAME: if.h,v 1.6 2001/01/21 15:37:14 itojun Exp $ */ +/* $KAME: if.h,v 1.10 2003/02/24 11:29:10 ono Exp $ */ /* * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. diff --git a/usr.sbin/rtadvd/rrenum.c b/usr.sbin/rtadvd/rrenum.c index 59c125b469c2..95cbd24c00f1 100644 --- a/usr.sbin/rtadvd/rrenum.c +++ b/usr.sbin/rtadvd/rrenum.c @@ -36,9 +36,7 @@ #include #include -#if defined(__FreeBSD__) && __FreeBSD__ >= 3 #include -#endif /* __FreeBSD__ >= 3 */ #include #include #include diff --git a/usr.sbin/rtadvd/timer.c b/usr.sbin/rtadvd/timer.c index f30fb3742ee4..fb9f299a287c 100644 --- a/usr.sbin/rtadvd/timer.c +++ b/usr.sbin/rtadvd/timer.c @@ -36,9 +36,6 @@ #include #include #include -#if defined(__NetBSD__) || defined(__OpenBSD__) -#include -#endif #include "timer.h" static struct rtadvd_timer timer_head; diff --git a/usr.sbin/rtsold/if.c b/usr.sbin/rtsold/if.c index 3d4632e443a8..d2cc01e0d40f 100644 --- a/usr.sbin/rtsold/if.c +++ b/usr.sbin/rtsold/if.c @@ -38,23 +38,12 @@ #include #include -#if defined(__FreeBSD__) && __FreeBSD__ >= 3 #include -#endif /* __FreeBSD__ >= 3 */ #include #include #include #include -#ifdef __FreeBSD__ -# include -#endif -#ifdef __NetBSD__ -#include -#endif -#if defined(__bsdi__) || defined(__OpenBSD__) -# include -# include -#endif +#include #include #include diff --git a/usr.sbin/rtsold/probe.c b/usr.sbin/rtsold/probe.c index a946381d3ff1..9b86c63c65ea 100644 --- a/usr.sbin/rtsold/probe.c +++ b/usr.sbin/rtsold/probe.c @@ -39,9 +39,7 @@ #include #include -#if defined(__FreeBSD__) && __FreeBSD__ >= 3 #include -#endif /* __FreeBSD__ >= 3 */ #include #include