diff options
author | James Peach <jpeach@samba.org> | 2006-02-06 04:06:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:50 -0500 |
commit | 52f01e20815120f8096a7d268db96a236b898127 (patch) | |
tree | c2ea5967633d7e057d9529811947f8e08e51ed5a /source4/client/cifsdd.c | |
parent | 338c410fec8dbd902485e56567f6aecf256cdba2 (diff) | |
download | samba-52f01e20815120f8096a7d268db96a236b898127.tar.gz samba-52f01e20815120f8096a7d268db96a236b898127.tar.bz2 samba-52f01e20815120f8096a7d268db96a236b898127.zip |
r13362: Rename variables for better consistency.
(This used to be commit dc20bb0ddc0824fc458e7fc4a9bce5059f4fc0d5)
Diffstat (limited to 'source4/client/cifsdd.c')
-rw-r--r-- | source4/client/cifsdd.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source4/client/cifsdd.c b/source4/client/cifsdd.c index cf3ab17308..6db18dce4f 100644 --- a/source4/client/cifsdd.c +++ b/source4/client/cifsdd.c @@ -402,7 +402,7 @@ static int copy_files(void) { uint8_t * iobuf; /* IO buffer. */ uint64_t iomax; /* Size of the IO buffer. */ - uint64_t iosz; /* Amount of data in the IO buffer. */ + uint64_t data_size; /* Amount of data in the IO buffer. */ uint64_t ibs; uint64_t obs; @@ -445,7 +445,7 @@ static int copy_files(void) DEBUG(4, ("max xmit was negotiated to be %d\n", lp_max_xmit())); - for (iosz = 0;;) { + for (data_size = 0;;) { /* Handle signals. We are somewhat compatible with GNU dd. * SIGINT makes us stop, but still print transfer statistics. @@ -462,10 +462,11 @@ static int copy_files(void) } if (ifile->io_flags & DD_END_OF_FILE) { - DEBUG(4, ("flushing %llu bytes at EOF\n", (unsigned long long)iosz)); - while (iosz > 0) { + DEBUG(4, ("flushing %llu bytes at EOF\n", + (unsigned long long)data_size)); + while (data_size > 0) { if (!dd_flush_block(ofile, iobuf, - &iosz, obs)) { + &data_size, obs)) { return(IOERROR_EXIT_CODE); } } @@ -475,11 +476,11 @@ static int copy_files(void) /* Try and read enough blocks of ibs bytes to be able write * out one of obs bytes. */ - if (!dd_fill_block(ifile, iobuf, &iosz, obs, ibs)) { + if (!dd_fill_block(ifile, iobuf, &data_size, obs, ibs)) { return(IOERROR_EXIT_CODE); } - if (iosz == 0) { + if (data_size == 0) { /* Done. */ SMB_ASSERT(ifile->io_flags & DD_END_OF_FILE); } @@ -497,7 +498,7 @@ static int copy_files(void) * at least obs bytes in the IO buffer but might not if the * file is too small. */ - if (!dd_flush_block(ofile, iobuf, &iosz, obs)) { + if (!dd_flush_block(ofile, iobuf, &data_size, obs)) { return(IOERROR_EXIT_CODE); } } |