summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-10-29 08:44:11 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-10-29 08:44:11 +0000
commite4ebc91f2c9fe15640cf8df3bb3a9e38974fdc8b (patch)
tree2e140500b258b92859f5003e388f2c03d950270d
parent2e543c9ff245ea7a4342f343a50a36b0e7a7d133 (diff)
-Wall happiness.
remove NENTS, it's in stand now.
-rw-r--r--sys/lib/libsa/netif.c7
-rw-r--r--sys/lib/libsa/netif.h4
2 files changed, 6 insertions, 5 deletions
diff --git a/sys/lib/libsa/netif.c b/sys/lib/libsa/netif.c
index 7415d26d58f..ea902399afe 100644
--- a/sys/lib/libsa/netif.c
+++ b/sys/lib/libsa/netif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netif.c,v 1.2 1996/09/23 14:18:59 mickey Exp $ */
+/* $OpenBSD: netif.c,v 1.3 1996/10/29 08:44:09 mickey Exp $ */
/* $NetBSD: netif.c,v 1.5 1995/09/18 21:19:34 pk Exp $ */
/*
@@ -37,7 +37,6 @@
#include <sys/cdefs.h>
#include <sys/mount.h>
#include <time.h>
-#include <string.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
@@ -227,7 +226,9 @@ netif_get(desc, pkt, len, timo)
size_t len;
time_t timo;
{
+#ifdef NETIF_DEBUG
struct netif *nif = desc->io_netif;
+#endif
struct netif_driver *drv = desc->io_netif->nif_driver;
ssize_t rv;
@@ -255,7 +256,9 @@ netif_put(desc, pkt, len)
void *pkt;
size_t len;
{
+#ifdef NETIF_DEBUG
struct netif *nif = desc->io_netif;
+#endif
struct netif_driver *drv = desc->io_netif->nif_driver;
ssize_t rv;
diff --git a/sys/lib/libsa/netif.h b/sys/lib/libsa/netif.h
index af9954b0b25..eabc08de444 100644
--- a/sys/lib/libsa/netif.h
+++ b/sys/lib/libsa/netif.h
@@ -1,12 +1,10 @@
-/* $OpenBSD: netif.h,v 1.2 1996/09/23 14:18:59 mickey Exp $ */
+/* $OpenBSD: netif.h,v 1.3 1996/10/29 08:44:10 mickey Exp $ */
/* $NetBSD: netif.h,v 1.4 1995/09/14 23:45:30 pk Exp $ */
#ifndef __SYS_LIBNETBOOT_NETIF_H
#define __SYS_LIBNETBOOT_NETIF_H
#include "iodesc.h"
-#define NENTS(x) sizeof(x)/sizeof(x[0])
-
struct netif_driver {
char *netif_bname;
int (*netif_match) __P((struct netif *, void *));