Use unsigned size type for pgpReadPkts().
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 11 Jul 2007 12:33:50 +0000 (15:33 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 11 Jul 2007 12:33:50 +0000 (15:33 +0300)
Derived from rpm5.org / Ralf S. Engelschall, I was too blind to see
ssize_t vs size_t, duh :)

build/files.c
lib/rpmchecksig.c

index 4ec9e38..9014f6e 100644 (file)
@@ -1780,7 +1780,7 @@ static int processMetadataFile(Package pkg, FileList fl, const char * fileURL,
     const char * fn = NULL;
     const char * apkt = NULL;
     const unsigned char * pkt = NULL;
-    ssize_t pktlen = 0;
+    size_t pktlen = 0;
     int absolute = 0;
     int rc = 1;
     int xx;
index 552ebb5..4a2b20e 100644 (file)
@@ -571,7 +571,7 @@ static int rpmcliImportPubkeys(const rpmts ts,
 {
     const char * fn;
     const unsigned char * pkt = NULL;
-    ssize_t pktlen = 0;
+    size_t pktlen = 0;
     char * t = NULL;
     int res = 0;
     rpmRC rpmrc;