From 76b6c930a41b820e5662dc4f01b9c88834154eaf Mon Sep 17 00:00:00 2001 From: agc Date: Mon, 8 Sep 2003 09:05:08 +0000 Subject: [PATCH] Make this compile after the recent changes to the kernel. --- sbin/scsictl/scsi_subr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/scsictl/scsi_subr.c b/sbin/scsictl/scsi_subr.c index 8e0d559125e2..b4438d50c52e 100644 --- a/sbin/scsictl/scsi_subr.c +++ b/sbin/scsictl/scsi_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: scsi_subr.c,v 1.8 2003/06/23 11:53:43 agc Exp $ */ +/* $NetBSD: scsi_subr.c,v 1.9 2003/09/08 09:05:08 agc Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -45,7 +45,7 @@ #include #ifndef lint -__RCSID("$NetBSD: scsi_subr.c,v 1.8 2003/06/23 11:53:43 agc Exp $"); +__RCSID("$NetBSD: scsi_subr.c,v 1.9 2003/09/08 09:05:08 agc Exp $"); #endif @@ -120,7 +120,7 @@ scsi_mode_sense(fd, pgcode, pctl, buf, len) cmd.opcode = MODE_SENSE; cmd.page = pgcode | pctl; - cmd.u_len.scsi.length = len; + cmd.length = len; scsi_command(fd, &cmd, sizeof(cmd), buf, len, 10000, SCCMD_READ); } @@ -138,7 +138,7 @@ scsi_mode_select(fd, byte2, buf, len) cmd.opcode = MODE_SELECT; cmd.byte2 = SMS_PF | byte2; - cmd.u_len.scsi.length = len; + cmd.length = len; scsi_command(fd, &cmd, sizeof(cmd), buf, len, 10000, SCCMD_WRITE); }