aboutsummaryrefslogtreecommitdiff
path: root/testing/sg_tst_excl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/sg_tst_excl.cpp')
-rw-r--r--testing/sg_tst_excl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/sg_tst_excl.cpp b/testing/sg_tst_excl.cpp
index eeba5545..0354de60 100644
--- a/testing/sg_tst_excl.cpp
+++ b/testing/sg_tst_excl.cpp
@@ -192,7 +192,7 @@ do_rd_inc_wr_twice_v3(const char * dev_name, unsigned int lba, int block,
{0x88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0};
unsigned char w16CmdBlk [WRITE16_CMD_LEN] =
{0x8a, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0};
- unsigned char sense_buffer[64] = {0};
+ unsigned char sense_buffer[64] SG_C_CPP_ZERO_INIT;
unsigned char lb[READ16_REPLY_LEN];
int open_flags = O_RDWR;
@@ -437,7 +437,7 @@ do_rd_inc_wr_twice_v4(const char * dev_name, unsigned int lba, int block,
{0x88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0};
unsigned char w16CmdBlk [WRITE16_CMD_LEN] =
{0x8a, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0};
- unsigned char sense_buffer[64] = {0};
+ unsigned char sense_buffer[64] SG_C_CPP_ZERO_INIT;
unsigned char lb[READ16_REPLY_LEN];
int open_flags = O_RDWR;
@@ -696,7 +696,7 @@ do_inquiry_prod_id(const char * dev_name, int block, int wait_ms,
unsigned char inqCmdBlk [INQ_CMD_LEN] =
{0x12, 0, 0, 0, INQ_REPLY_LEN, 0};
unsigned char inqBuff[INQ_REPLY_LEN];
- unsigned char sense_buffer[64] = {0};
+ unsigned char sense_buffer[64] SG_C_CPP_ZERO_INIT;
int open_flags = O_RDWR; /* O_EXCL | O_RDONLY fails with EPERM */
if (! block)