[BACK]Return to mmc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cdio

Diff for /src/usr.bin/cdio/mmc.c between version 1.26 and 1.27

version 1.26, 2008/08/30 10:41:38 version 1.27, 2009/12/04 07:43:26
Line 80 
Line 80 
         scsireq_t scr;          scsireq_t scr;
         u_char buf[4096];          u_char buf[4096];
         u_int32_t i, dlen;          u_int32_t i, dlen;
         u_int16_t feature;          u_int16_t feature, tmp;
         u_int8_t feature_len;          u_int8_t feature_len;
         int error;          int error;
   
Line 90 
Line 90 
   
         scr.cmd[0] = SCSI_GET_CONFIGURATION;          scr.cmd[0] = SCSI_GET_CONFIGURATION;
         scr.cmd[1] = rt;          scr.cmd[1] = rt;
         *(u_int16_t *)(scr.cmd + 7) = htobe16(sizeof(buf));          tmp = htobe16(sizeof(buf));
           memcpy(scr.cmd + 7, &tmp, sizeof(u_int16_t));
   
         scr.flags = SCCMD_ESCAPE | SCCMD_READ;          scr.flags = SCCMD_ESCAPE | SCCMD_READ;
         scr.databuf = buf;          scr.databuf = buf;

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27