diff options
author | 1997-01-16 20:47:32 +0000 | |
---|---|---|
committer | 1997-01-16 20:47:32 +0000 | |
commit | b9e415ac175cbda5b49842e750c5e69b4df8efb6 (patch) | |
tree | b9b4321e7d570330398cb76ff67d39c2174f24bc | |
parent | do not call resettodr() if RB_TIMEBAD is set due to being in ddb with clock updates suspended (diff) | |
download | wireguard-openbsd-b9e415ac175cbda5b49842e750c5e69b4df8efb6.tar.xz wireguard-openbsd-b9e415ac175cbda5b49842e750c5e69b4df8efb6.zip |
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 |