1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/sysutils/mei/files/patch-ba
Jun-ichiro itojun Hagino 78453f8d41 update to handle SCSI changes made on FreeBSD 2.2.5-RELEASE.
Submitted by: Jun YAMASHITA <junkun@esys.tsukuba.ac.jp>
1998-03-15 21:32:01 +00:00

35 lines
895 B
Plaintext

for the changes made on FreeBSD-2.2.5.
From: Jun YAMASHITA <junkun@esys.tsukuba.ac.jp>
*** fbsdscsi.c.orig Mon Sep 9 19:52:06 1996
--- fbsdscsi.c Tue Dec 16 02:08:57 1997
***************
*** 26,38 ****
if (psrq->timeout == 0)
psrq->timeout = 2*1000;
psrq->senselen = SENSEBUFLEN;
! ioctl (fd, SCIOCCOMMAND, psrq);
! if ((SCSIDriverStatus = psrq->retsts) != SCCMD_OK)
stat = FAILURE;
! else if ((SCSIStatus = psrq->status) == S_GOOD)
stat = SUCCESS;
else
{
stat = FAILURE;
if (SCSIStatus == S_CHECK)
{
--- 26,38 ----
if (psrq->timeout == 0)
psrq->timeout = 2*1000;
psrq->senselen = SENSEBUFLEN;
! if (ioctl (fd, SCIOCCOMMAND, psrq) == FAILURE)
stat = FAILURE;
! else if ((SCSIDriverStatus = psrq->retsts) == SCCMD_OK)
stat = SUCCESS;
else
{
+ SCSIStatus = psrq->status;
stat = FAILURE;
if (SCSIStatus == S_CHECK)
{