diff options
author | ru <ru@FreeBSD.org> | 2005-12-06 11:19:37 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-12-06 11:19:37 +0000 |
commit | 3db1ffb04091aeb5cbd6b87a4fa136442d8d3bc9 (patch) | |
tree | d4aab888a37abefaa2332f515bb2be9862352b91 /sys/dev/snc | |
parent | f5b3d1a6c477ee8fd2cbe84115ae58ada92829f8 (diff) | |
download | FreeBSD-src-3db1ffb04091aeb5cbd6b87a4fa136442d8d3bc9.zip FreeBSD-src-3db1ffb04091aeb5cbd6b87a4fa136442d8d3bc9.tar.gz |
Fix -Wundef warnings from compiling GENERIC and LINT kernels of
all architectures.
Diffstat (limited to 'sys/dev/snc')
-rw-r--r-- | sys/dev/snc/dp83932.c | 6 | ||||
-rw-r--r-- | sys/dev/snc/dp83932var.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/snc/dp83932.c b/sys/dev/snc/dp83932.c index ce7c920..e6c0dd6 100644 --- a/sys/dev/snc/dp83932.c +++ b/sys/dev/snc/dp83932.c @@ -70,7 +70,7 @@ #include <sys/socket.h> #include <sys/syslog.h> #include <sys/errno.h> -#if NRND > 0 +#if defined(NRND) && NRND > 0 #include <sys/rnd.h> #endif @@ -202,7 +202,7 @@ sncconfig(sc, media, nmedia, defmedia, myea) ether_ifattach(ifp, myea); -#if NRND > 0 +#if defined(NRND) && NRND > 0 rnd_attach_source(&sc->rnd_source, device_get_nameunit(sc->sc_dev), RND_TYPE_NET, 0); #endif @@ -890,7 +890,7 @@ sncintr(arg) } sncstart(sc->sc_ifp); -#if NRND > 0 +#if defined(NRND) && NRND > 0 if (isr) rnd_add_uint32(&sc->rnd_source, isr); #endif diff --git a/sys/dev/snc/dp83932var.h b/sys/dev/snc/dp83932var.h index 9570162..59ffefb 100644 --- a/sys/dev/snc/dp83932var.h +++ b/sys/dev/snc/dp83932var.h @@ -226,7 +226,7 @@ typedef struct snc_softc { void *sc_sh; /* shutdownhook cookie */ int gone; -#if NRND > 0 +#if defined(NRND) && NRND > 0 rndsource_element_t rnd_source; #endif } snc_softc_t; |