From: Vladimir 'phcoder' Serbinenko Date: Fri, 10 Feb 2012 11:21:28 +0000 (+0100) Subject: * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to X-Git-Tag: 2.00~656 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=340ba63ede3bb14b7a077fcf1a616b33d0436902;p=thirdparty%2Fgrub.git * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to curindex to avoid shadowing. Make static. (MatchFinder_GetNumAvailableBytes): Make static. --- diff --git a/ChangeLog b/ChangeLog index 7dcfbcdcd..c6d950ca8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-02-10 Vladimir Serbinenko + + * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to + curindex to avoid shadowing. + Make static. + (MatchFinder_GetNumAvailableBytes): Make static. + 2012-02-10 Vladimir Serbinenko * grub-core/fs/squash4.c (direct_read): Rename read to curread to diff --git a/grub-core/lib/LzFind.c b/grub-core/lib/LzFind.c index d2bb15c65..dcb20d921 100644 --- a/grub-core/lib/LzFind.c +++ b/grub-core/lib/LzFind.c @@ -69,9 +69,9 @@ static int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv, ISzAlloc *a } Byte *MatchFinder_GetPointerToCurrentPos(CMatchFinder *p) { return p->buffer; } -Byte MatchFinder_GetIndexByte(CMatchFinder *p, Int32 index) { return p->buffer[index]; } +static Byte MatchFinder_GetIndexByte(CMatchFinder *p, Int32 curindex) { return p->buffer[curindex]; } -UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) { return p->streamPos - p->pos; } +static UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) { return p->streamPos - p->pos; } void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue) {