butc: rename local var tapeblocks to numTapeblocks 28/14128/3
authorCheyenne Wills <cwills@sinenomine.net>
Wed, 1 Apr 2020 15:38:05 +0000 (09:38 -0600)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 3 Apr 2020 16:15:49 +0000 (12:15 -0400)
The local variable tapeblocks in GetConfigParams matches a global
variable.  Rename the local variable to avoid confusion with the global
name.

Change-Id: I1c30433696a35a74978ef0c23881c82054b416c5
Reviewed-on: https://gerrit.openafs.org/14128
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>

src/butc/tcmain.c

index 1bbebeb..ed583a7 100644 (file)
@@ -565,7 +565,7 @@ GetConfigParams(char *filename, afs_int32 port)
 
        else if (!strcmp(cmd, "BUFFERSIZE")) {
            afs_int32 size;
-           afs_int32 tapeblocks;
+           afs_int32 numTapeblocks;
 
            if (!CONF_XBSA) {
                if (atocl(value, 'K', &size)) {
@@ -576,11 +576,11 @@ GetConfigParams(char *filename, afs_int32 port)
                /* A tapeblock is 16KB. Determine # of tapeblocks. Then
                 * determine BufferSize needed for that many tapeblocks.
                 */
-               tapeblocks = size / 16;
-               if (tapeblocks <= 0)
-                   tapeblocks = 1;
-               printf("BUFFERSIZE is %u KBytes\n", (tapeblocks * 16));
-               BufferSize = tapeblocks * BUTM_BLOCKSIZE;
+               numTapeblocks = size / 16;
+               if (numTapeblocks <= 0)
+                   numTapeblocks = 1;
+               printf("BUFFERSIZE is %u KBytes\n", (numTapeblocks * 16));
+               BufferSize = numTapeblocks * BUTM_BLOCKSIZE;
            } else {
 #ifdef xbsa
                if (atocl(value, 'B', &size)) {