diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-01-16 20:47:33 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-01-16 20:47:33 +0000 |
commit | 8f10b75fcb13b1d71408abf8ef5f22583c8abf94 (patch) | |
tree | 8c3a8672377f7547286d0ee13cd005379ca4a650 | |
parent | bd7fbb457605e2f68a21bceee7c234a1b1b96ef5 (diff) |
prevent scsiconf.c:110: warning: unused variable `l'
also, #ifdef 0 -> #ifndef __OpenBSD__
-rw-r--r-- | sys/scsi/scsiconf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index 164ea3440d5..c1b2000a65e 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.21 1997/01/16 14:23:32 maja Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.22 1997/01/16 20:47:32 kstailey Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -107,14 +107,16 @@ scsiprint(aux, pnp) void *aux; const char *pnp; { +#ifndef __OpenBSD__ struct scsi_link *l = aux; +#endif /* only "scsibus"es can attach to "scsi"s; easy. */ if (pnp) printf("scsibus at %s", pnp); +#ifndef __OpenBSD__ /* don't print channel if the controller says there can be only one. */ -#ifdef 0 if (l->channel != SCSI_CHANNEL_ONLY_ONE) printf(" channel %d", l->channel); #endif |