changeset 25049:225a382a3c2e

We do not have any use for the sense data, so we don't need a buffer for it.
author reimar
date Sat, 17 Nov 2007 19:02:30 +0000
parents 280fc0e914f3
children 64d8dec106a5
files stream/stream_dvd.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvd.c	Sat Nov 17 18:52:43 2007 +0000
+++ b/stream/stream_dvd.c	Sat Nov 17 19:02:30 2007 +0000
@@ -51,11 +51,9 @@
   int fd;
   unsigned char buffer[28];
   unsigned char cmd[12];
-  unsigned char sense[16];
   struct sg_io_hdr sghdr;
   struct stat st;
 
-  memset(sense, 0, sizeof(sense));
   memset(&st, 0, sizeof(st));
 
   if (stat(device, &st) == -1) return;
@@ -81,10 +79,9 @@
   sghdr.interface_id = 'S';
   sghdr.timeout = 5000;
   sghdr.dxfer_direction = SG_DXFER_TO_DEV;
-  sghdr.mx_sb_len = sizeof(sense);
+  sghdr.mx_sb_len = 0;
   sghdr.dxfer_len = sizeof(buffer);
   sghdr.cmd_len = sizeof(cmd);
-  sghdr.sbp = sense;
   sghdr.dxferp = buffer;
   sghdr.cmdp = cmd;