Remove some #if NFOO > 0 that are always true because of config rules.

This commit is contained in:
peter 2000-01-29 16:56:24 +00:00
parent df8e50f82d
commit f9e0b7a48b
6 changed files with 2 additions and 18 deletions

View File

@ -38,7 +38,6 @@
* Loopback interface driver for protocol testing and timing.
*/
#include "loop.h"
#if NLOOP > 0
#include "opt_atalk.h"
#include "opt_inet.h"
@ -398,4 +397,3 @@ loioctl(ifp, cmd, data)
}
return (error);
}
#endif /* NLOOP > 0 */

View File

@ -74,7 +74,6 @@
/* from NetBSD: if_ppp.c,v 1.15.2.2 1994/07/28 05:17:58 cgd Exp */
#include "ppp.h"
#if NPPP > 0
#include "opt_inet.h"
#include "opt_ipx.h"
@ -1572,5 +1571,3 @@ pppdumpm(m0)
*bp = 0;
printf("%s\n", buf);
}
#endif /* NPPP > 0 */

View File

@ -98,7 +98,7 @@ struct ppp_softc {
int sc_rawin_count; /* # in sc_rawin */
};
extern struct ppp_softc ppp_softc[NPPP];
extern struct ppp_softc ppp_softc[];
struct ppp_softc *pppalloc __P((pid_t pid));
void pppdealloc __P((struct ppp_softc *sc));

View File

@ -66,10 +66,9 @@
*/
#include "sl.h"
#if NSL > 0
#include "opt_inet.h"
#if !defined(ACTUALLY_LKM_NOT_KERNEL) && !defined(KLD_MODULE)
#if !defined(KLD_MODULE)
#include "opt_slip.h"
#endif
#include <sys/param.h>
@ -1036,5 +1035,3 @@ sl_outfill(chan)
sc->sc_flags &= ~SC_OUTWAIT;
}
}
#endif

View File

@ -55,7 +55,6 @@
*/
#include "vlan.h"
#if NVLAN > 0
#include "opt_inet.h"
#include <sys/param.h>
@ -553,5 +552,3 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
}
return error;
}
#endif /* NVLAN > 0 */

View File

@ -72,9 +72,6 @@
/* $FreeBSD$ */
#include "ppp.h"
#if NPPP > 0
#include "opt_ppp.h" /* XXX for ppp_defs.h */
#define VJC /* XXX for ppp_defs.h */
@ -1124,5 +1121,3 @@ ppplogchar(sc, c)
sc->sc_rawin_count = 0;
}
}
#endif /* NPPP > 0 */