aboutsummaryrefslogtreecommitdiff
path: root/src/sg_read.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2007-12-19 16:35:49 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2007-12-19 16:35:49 +0000
commitb4530ba23ca6fb39e2bbf56afa4fdc892bf16910 (patch)
tree6a1ad36741c45c218f6ba11001c8260b18e4a09a /src/sg_read.c
parent2fdbef700da5c71ab2eaf80547704d03e7a93f91 (diff)
downloadsg3_utils-b4530ba23ca6fb39e2bbf56afa4fdc892bf16910.tar.gz
change 'long long' to int64_t to stress only need 64 bit integers (similar change to uint64_t)
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@128 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_read.c')
-rw-r--r--src/sg_read.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sg_read.c b/src/sg_read.c
index c8accc4b..2da4a102 100644
--- a/src/sg_read.c
+++ b/src/sg_read.c
@@ -75,9 +75,9 @@ static const char * version_str = "1.17 20070714";
static int sum_of_resids = 0;
-static long long dd_count = -1;
-static long long orig_count = 0;
-static long long in_full = 0;
+static int64_t dd_count = -1;
+static int64_t orig_count = 0;
+static int64_t in_full = 0;
static int in_partial = 0;
static int pack_id_count = 0;
@@ -198,7 +198,7 @@ static void usage()
}
static int sg_build_scsi_cdb(unsigned char * cdbp, int cdb_sz,
- unsigned int blocks, long long start_block,
+ unsigned int blocks, int64_t start_block,
int write_true, int fua, int dpo)
{
int rd_opcode[] = {0x8, 0x28, 0xa8, 0x88};
@@ -293,7 +293,7 @@ static int sg_build_scsi_cdb(unsigned char * cdbp, int cdb_sz,
1 -> recoverable (ENOMEM), 2 -> try again (e.g. unit attention),
3 -> try again (e.g. aborted command), -1 -> other unrecoverable error */
static int sg_bread(int sg_fd, unsigned char * buff, int blocks,
- long long from_block, int bs, int cdbsz,
+ int64_t from_block, int bs, int cdbsz,
int fua, int dpo, int * diop, int do_mmap,
int no_dxfer)
{
@@ -387,7 +387,7 @@ static int sg_bread(int sg_fd, unsigned char * buff, int blocks,
int main(int argc, char * argv[])
{
- long long skip = 0;
+ int64_t skip = 0;
int bs = 0;
int bpt = DEF_BLOCKS_PER_TRANSFER;
char str[STR_SZ];