]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
gtx: remove unused variable numBuffBytes
authorMarc Dionne <marc.c.dionne@gmail.com>
Tue, 29 May 2012 01:49:46 +0000 (21:49 -0400)
committerDerrick Brashear <shadow@dementix.org>
Tue, 29 May 2012 03:07:31 +0000 (20:07 -0700)
Commit 9efc255a makes the numBuffBytes variable unnecessary.
Remove it to clear up an "unused but set" warning.

Change-Id: Ifc50c40542e008d76007c76a9ce146fe6ebab4be
Reviewed-on: http://gerrit.openafs.org/7504
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/gtx/textcb.c

index 378d6fae183ca9ab9a3815541b0b953ad7a6ee8d..21c93ca6bd4e63c5d5b36a646ce9394b373a14f1 100644 (file)
@@ -91,7 +91,6 @@ gator_textcb_Create(int a_maxEntriesStored, int a_maxCharsPerEntry)
     struct gator_textcb_entry *newEntries;     /*Ptr to new text entries */
     struct gator_textcb_hdr *newHdr;   /*Ptr to new text hdr */
     int bytesToAllocate;       /*Num bytes to allocate */
-    int numBuffBytes;          /*Num bytes in text buffer */
     int curr_ent_num;          /*Current entry number */
     struct gator_textcb_entry *curr_ent;       /*Ptr to current entry */
     char *curr_buff;           /*Ptr to current buff pos */
@@ -105,7 +104,7 @@ gator_textcb_Create(int a_maxEntriesStored, int a_maxCharsPerEntry)
      * always null-terminate them.  We also need to allocate the blank
      * line buffer.
      */
-    numBuffBytes = bytesToAllocate =
+    bytesToAllocate =
        a_maxEntriesStored * (a_maxCharsPerEntry + 1);
     if (gator_textcb_debug)
        fprintf(stderr, "[%s] Allocating %d bytes for the text buffer\n", rn,