summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1998-12-10 01:52:16 +0000
committerarchie <archie@FreeBSD.org>1998-12-10 01:52:16 +0000
commit7e681e5e17b78a44b85222931bbfb452faaf4a08 (patch)
tree7ed07f3cbcec5dc006069348fd2b3c7932527655 /sys
parent02113f36ef21f4f409b841632021b53280743a2d (diff)
downloadFreeBSD-src-7e681e5e17b78a44b85222931bbfb452faaf4a08.zip
FreeBSD-src-7e681e5e17b78a44b85222931bbfb452faaf4a08.tar.gz
Eliminate compiler warning.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ie/if_ie.c4
-rw-r--r--sys/i386/isa/if_ie.c4
-rw-r--r--sys/pci/ide_pci.c7
3 files changed, 11 insertions, 4 deletions
diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c
index 3f1ed13..4b22ae5 100644
--- a/sys/dev/ie/if_ie.c
+++ b/sys/dev/ie/if_ie.c
@@ -47,7 +47,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ie.c,v 1.56 1998/08/10 17:21:48 bde Exp $
+ * $Id: if_ie.c,v 1.57 1998/10/22 05:58:39 bde Exp $
*/
/*
@@ -2261,7 +2261,9 @@ static int
ieioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct ifaddr *ifa = (struct ifaddr *) data;
+#if defined(IPX) || defined(NS)
struct ie_softc *ie = ifp->if_softc;
+#endif
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
diff --git a/sys/i386/isa/if_ie.c b/sys/i386/isa/if_ie.c
index 3f1ed13..4b22ae5 100644
--- a/sys/i386/isa/if_ie.c
+++ b/sys/i386/isa/if_ie.c
@@ -47,7 +47,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ie.c,v 1.56 1998/08/10 17:21:48 bde Exp $
+ * $Id: if_ie.c,v 1.57 1998/10/22 05:58:39 bde Exp $
*/
/*
@@ -2261,7 +2261,9 @@ static int
ieioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct ifaddr *ifa = (struct ifaddr *) data;
+#if defined(IPX) || defined(NS)
struct ie_softc *ie = ifp->if_softc;
+#endif
struct ifreq *ifr = (struct ifreq *) data;
int s, error = 0;
diff --git a/sys/pci/ide_pci.c b/sys/pci/ide_pci.c
index 670443a..70a4570 100644
--- a/sys/pci/ide_pci.c
+++ b/sys/pci/ide_pci.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ide_pci.c,v 1.14 1998/07/15 02:32:26 bde Exp $
+ * $Id: ide_pci.c,v 1.15 1998/12/04 21:41:18 archie Exp $
*/
#include "pci.h"
@@ -1265,7 +1265,10 @@ ide_pci_dmasetup(void *xcp, char *vaddr, u_long vcount, int dir)
u_long prd_base, prd_count;
u_long nbase, ncount, nend;
int iobase_bm;
- u_long count, checkcount;
+ u_long count;
+#ifdef DIAGNOSTIC
+ u_long checkcount;
+#endif
prd = cp->prd;
OpenPOWER on IntegriCloud