Changes by: uvman
Update of /cvs/linux-ntfs/ntfsprogs/libntfs
In directory delta357:/tmp/cvs-serv14696/libntfs
Modified Files:
index.c
Log Message:
C99 declarations before code fixes.
Index: index.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/libntfs/index.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -p -r1.32 -r1.33
--- index.c 27 Oct 2006 12:24:30 -0000 1.32
+++ index.c 28 Oct 2006 23:40:11 -0000 1.33
@@ -218,9 +218,11 @@ static INDEX_ENTRY *ntfs_ie_get_last(IND
static INDEX_ENTRY *ntfs_ie_get_by_pos(INDEX_HEADER *ih, int pos)
{
+ INDEX_ENTRY *ie;
+
ntfs_log_trace("pos: %d\n", pos);
- INDEX_ENTRY *ie = ntfs_ie_get_first(ih);
+ ie = ntfs_ie_get_first(ih);
while (pos-- > 0)
ie = ntfs_ie_get_next(ie);
@@ -229,10 +231,12 @@ static INDEX_ENTRY *ntfs_ie_get_by_pos(I
static INDEX_ENTRY *ntfs_ie_prev(INDEX_HEADER *ih, INDEX_ENTRY *ie)
{
+ INDEX_ENTRY *ie_prev, *tmp;
+
ntfs_log_trace("Entering.\n");
- INDEX_ENTRY *ie_prev = NULL;
- INDEX_ENTRY *tmp = ntfs_ie_get_first(ih);
+ ie_prev = NULL;
+ tmp = ntfs_ie_get_first(ih);
while (tmp != ie) {
ie_prev = tmp;
|