diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-02-02 17:13:01 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-02-02 17:13:01 +0100 |
commit | ffa8801644a7d53cc1c785e3450f794c07a14eb0 (patch) | |
tree | 8d72a18a9a08b9151d12badcb1c78ce06a059f62 /sanei/sanei_scsi.c | |
parent | 1687222e1b9e74c89cafbb5910e72d8ec7bfd40f (diff) |
New upstream version 1.0.29upstream/1.0.29
Diffstat (limited to 'sanei/sanei_scsi.c')
-rw-r--r-- | sanei/sanei_scsi.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sanei/sanei_scsi.c b/sanei/sanei_scsi.c index ca3dbb0..b69f78f 100644 --- a/sanei/sanei_scsi.c +++ b/sanei/sanei_scsi.c @@ -615,7 +615,7 @@ open_aspi (void) DBG (1, "OS/2: unique id is '%s'\n", PSRBlock->u.inq.unique_id); strcpy (tmpAspi, "asXXXXXX"); - mktemp (tmpAspi); + mkstemp (tmpAspi); DBG (2, "open_aspi: open temporary file '%s'\n", tmpAspi); tmp = fopen (tmpAspi, "w"); if (!tmp) @@ -3271,8 +3271,8 @@ sanei_scsi_find_devices (const char *findvendor, const char *findmodel, ccb = cam_getccb (dev); /* Build the CCB */ - bzero (&(&ccb->ccb_h)[1], sizeof (struct ccb_scsiio)); - bcopy (cmd, &ccb->csio.cdb_io.cdb_bytes, cmd_size); + memset (&(&ccb->ccb_h)[1], 0, sizeof (struct ccb_scsiio)); + memcpy (&ccb->csio.cdb_io.cdb_bytes, cmd, cmd_size); /* * Set the data direction flags. @@ -3368,7 +3368,7 @@ sanei_scsi_find_devices (const char *findvendor, const char *findmodel, int retval = 0; /* build ccb for device match */ - bzero (&cdm, sizeof (cdm)); + memset (&cdm, 0, sizeof (cdm)); cdm.ccb_h.func_code = XPT_DEV_MATCH; /* result buffer */ @@ -3454,7 +3454,7 @@ sanei_scsi_find_devices (const char *findvendor, const char *findmodel, } /* build ccb for device match */ - bzero (&cdm, sizeof (cdm)); + memset (&cdm, 0, sizeof (cdm)); cdm.ccb_h.func_code = XPT_DEV_MATCH; /* result buffer */ @@ -4449,7 +4449,7 @@ sanei_scsi_find_devices (const char *findvendor, const char *findmodel, memcpy (databuf, (u_char *) src, src_size); } - bzero (sensebuf, 128); + memset (sensebuf, 0, 128); /* * Do SCSI request... @@ -5358,7 +5358,7 @@ sanei_scsi_find_devices (const char *findvendor, const char *findmodel, memcpy (&cdb.cdb, cmd, cmd_size); if (dst && dst_size) { - bzero (dst, *dst_size); + memset (dst, 0, *dst_size); range.address = (IOVirtualAddress) dst; range.length = *dst_size; transferCount = *dst_size; @@ -5699,7 +5699,7 @@ sanei_scsi_find_devices (const char *findvendor, const char *findmodel, DBG (6, "isRead dst_size:%ld\n", *dst_size); /* Zero the buffer. */ - bzero (dst, *dst_size); + memset (dst, 0, *dst_size); /* Configure the virtual range for the buffer. */ range.address = (long) dst; @@ -5722,8 +5722,8 @@ sanei_scsi_find_devices (const char *findvendor, const char *findmodel, /* zero the senseData and CDB */ - bzero (&senseData, sizeof (senseData)); - bzero (cdb, sizeof (cdb)); + memset (&senseData, 0, sizeof (senseData)); + memset (cdb, 0, sizeof (cdb)); /* copy the command data */ memcpy (cdb, cmd, cmd_size); |