diff options
Diffstat (limited to 'sysutils/smartmontools-devel/files/patch-scsiata.cpp')
-rw-r--r-- | sysutils/smartmontools-devel/files/patch-scsiata.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sysutils/smartmontools-devel/files/patch-scsiata.cpp b/sysutils/smartmontools-devel/files/patch-scsiata.cpp deleted file mode 100644 index 173fd2b26e84..000000000000 --- a/sysutils/smartmontools-devel/files/patch-scsiata.cpp +++ /dev/null @@ -1,22 +0,0 @@ ---- scsiata.cpp.orig 2007-12-02 19:14:20.000000000 -0700 -+++ scsiata.cpp 2009-09-04 14:27:48.000000000 -0600 -@@ -380,14 +380,14 @@ - return 1, else 0 */ - int has_sat_pass_through(int device, int packet_interface) - { -- char data[512]; -+ int ret; -+ char *data = (char *)malloc(512); // (alignment) - smart_command_set command; - - command = packet_interface ? PIDENTIFY : IDENTIFY; -- if (0 == sat_command_interface(device, command, 0, data)) -- return 1; -- else -- return 0; -+ ret = ( 0 == sat_command_interface(device, command, 0, data) ? 1 : 0 ); -+ free(data); -+ return ret; - } - - /* Next two functions are borrowed from sg_lib.c in the sg3_utils |