]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 10 Feb 2012 11:21:28 +0000 (12:21 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 10 Feb 2012 11:21:28 +0000 (12:21 +0100)
curindex to avoid shadowing.
Make static.
(MatchFinder_GetNumAvailableBytes): Make static.

ChangeLog
grub-core/lib/LzFind.c

index 7dcfbcdcd90a92cf7a03882a3ef1f71be1bcfed9..c6d950ca8857bfe3798f33945360a7da7011b869 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * 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  <phcoder@gmail.com>
 
        * grub-core/fs/squash4.c (direct_read): Rename read to curread to
index d2bb15c651e3930901ca79aa25fd98d6aba26893..dcb20d9215ebb5a80720a1068a7f380f28e0175d 100644 (file)
@@ -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)
 {