From: Marc Dionne Date: Tue, 29 May 2012 01:49:46 +0000 (-0400) Subject: gtx: remove unused variable numBuffBytes X-Git-Tag: openafs-stable-1_8_0pre1~2363 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=02018d729f3d1b1177ee271d566b8acba488a515 gtx: remove unused variable numBuffBytes 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 Tested-by: BuildBot --- diff --git a/src/gtx/textcb.c b/src/gtx/textcb.c index 378d6fa..21c93ca 100644 --- a/src/gtx/textcb.c +++ b/src/gtx/textcb.c @@ -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,