Skip to content
Snippets Groups Projects
Commit b340f409 authored by shattered's avatar shattered
Browse files

Reduce diff with os_netbsd.cpp. Whitespace only.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2389 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 75616bc1
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@
#include "utility.h"
#include "os_openbsd.h"
const char *os_XXXX_c_cvsid = "$Id: os_openbsd.cpp,v 1.13 2006/09/20 16:17:31 shattered Exp $" \
const char *os_XXXX_c_cvsid = "$Id: os_openbsd.cpp,v 1.14 2007/04/05 16:39:21 shattered Exp $" \
ATACMDS_H_CVSID CONFIG_H_CVSID INT64_H_CVSID OS_OPENBSD_H_CVSID SCSICMDS_H_CVSID UTILITY_H_CVSID;
/* global variable holding byte count of allocated memory */
......@@ -395,7 +395,7 @@ do_scsi_cmnd_io(int fd, struct scsi_cmnd_io * iop, int report)
sc.senselen = iop->max_sense_len;
sc.timeout = iop->timeout == 0 ? 60000 : iop->timeout; /* XXX */
sc.flags =
(iop->dxfer_dir == DXFER_NONE ? SCCMD_READ : /* XXX */
(iop->dxfer_dir == DXFER_NONE ? SCCMD_READ :
(iop->dxfer_dir == DXFER_FROM_DEVICE ? SCCMD_READ : SCCMD_WRITE));
if (ioctl(fd, SCIOCCOMMAND, &sc) < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment