From: kstailey Date: Thu, 16 Jan 1997 20:47:32 +0000 (+0000) Subject: prevent scsiconf.c:110: warning: unused variable `l' X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b9e415ac175cbda5b49842e750c5e69b4df8efb6;p=openbsd prevent scsiconf.c:110: warning: unused variable `l' also, #ifdef 0 -> #ifndef __OpenBSD__ --- 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