Use uint_32 for dirindexes everywhere
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 12 Jul 2007 09:30:26 +0000 (12:30 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 12 Jul 2007 09:30:26 +0000 (12:30 +0300)
lib/rpmfi.c
rpmdb/fprint.c
rpmdb/fprint.h
rpmdb/legacy.c
rpmdb/rpmdb.c
tools/convertdb1.c

index 19a45d3..bdc91e3 100644 (file)
@@ -671,8 +671,8 @@ Header relocateFileList(const rpmts ts, rpmfi fi,
     int numValid;
     const char ** baseNames;
     const char ** dirNames;
-    int_32 * dirIndexes;
-    int_32 * newDirIndexes;
+    uint_32 * dirIndexes;
+    uint_32 * newDirIndexes;
     int_32 fileCount;
     int_32 dirCount;
     uint_32 mydColor = rpmExpandNumeric("%{?_autorelocate_dcolor}");
index 2244a91..1d5bf40 100644 (file)
@@ -234,7 +234,7 @@ int fpEqual(const void * key1, const void * key2)
 
 /*@-bounds@*/
 void fpLookupList(fingerPrintCache cache, const char ** dirNames, 
-                 const char ** baseNames, const int * dirIndexes, 
+                 const char ** baseNames, const uint_32 * dirIndexes, 
                  int fileCount, fingerPrint * fpList)
 {
     int i;
@@ -270,7 +270,7 @@ void fpLookupHeader(fingerPrintCache cache, Header h, fingerPrint * fpList)
     HFD_t hfd = headerFreeData;
     const char ** baseNames, ** dirNames;
     rpmTagType bnt, dnt;
-    int_32 * dirIndexes;
+    uint_32 * dirIndexes;
     int fileCount;
     int xx;
 
index 79bb7e4..09ef526 100644 (file)
@@ -140,7 +140,7 @@ int fpEqual(const void * key1, const void * key2)
  * @retval fpList      pointer to array of finger prints
  */
 void fpLookupList(fingerPrintCache cache, const char ** dirNames, 
-                 const char ** baseNames, const int * dirIndexes, 
+                 const char ** baseNames, const uint_32 * dirIndexes, 
                  int fileCount, fingerPrint * fpList)
        /*@modifies cache, *fpList @*/;
 
index fe13b0a..efc9e79 100644 (file)
@@ -275,7 +275,7 @@ void compressFilelist(Header h)
     char ** fileNames;
     const char ** dirNames;
     const char ** baseNames;
-    int_32 * dirIndexes;
+    uint_32 * dirIndexes;
     rpmTagType fnt;
     int count;
     int i, xx;
@@ -365,7 +365,7 @@ void rpmfiBuildFNames(Header h, rpmTag tagN,
     HFD_t hfd = headerFreeData;
     const char ** baseNames;
     const char ** dirNames;
-    int * dirIndexes;
+    uint_32 * dirIndexes;
     int count;
     const char ** fileNames;
     int size;
index 0a55957..f23bea4 100644 (file)
@@ -1283,7 +1283,7 @@ if (rc == 0)
     if (allMatches != NULL)
     while (i < allMatches->count) {
        const char ** baseNames, ** dirNames;
-       int_32 * dirIndexes;
+       uint_32 * dirIndexes;
        unsigned int offset = dbiIndexRecordOffset(allMatches, i);
        unsigned int prevoff;
        Header h;
@@ -3447,8 +3447,8 @@ if (key->size == 0) key->size++;  /* XXX "/" fixup. */
        const char ** baseNames;
        const char ** fullBaseNames;
        rpmTagType bnt, dnt;
-       int_32 * dirIndexes;
-       int_32 * fullDirIndexes;
+       uint_32 * dirIndexes;
+       uint_32 * fullDirIndexes;
        fingerPrint * fps;
        dbiIndexItem im;
        int start;
index aad86cb..04120fa 100644 (file)
@@ -133,7 +133,7 @@ static void compressFilelist(Header h)
     char ** fileNames;
     const char ** dirNames;
     const char ** baseNames;
-    int_32 * dirIndexes;
+    uint_32 * dirIndexes;
     rpmTagType fnt;
     int count;
     int i, xx;