RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: rpm-4_5: rpm/rpmio/ thkp.c

From: Jeff Johnson <jbj@rpm5.org>
Date: Mon 30 Jul 2007 - 04:15:18 CEST
Message-Id: <20070730021518.E607E348447@rpm5.org>
  RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  jbj@rpm5.org
  Module: rpm                              Date:   30-Jul-2007 04:15:18
  Branch: rpm-4_5                          Handle: 2007073003151800

  Modified files:           (Branch: rpm-4_5)
    rpm/rpmio               thkp.c

  Log:
    use size_t for pktlen.

  Summary:
    Revision    Changes     Path
    2.9.2.1     +2  -2      rpm/rpmio/thkp.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/rpmio/thkp.c
  ============================================================================
  $ cvs diff -u -r2.9 -r2.9.2.1 thkp.c
  --- rpm/rpmio/thkp.c	25 May 2007 17:36:37 -0000	2.9
  +++ rpm/rpmio/thkp.c	30 Jul 2007 02:15:18 -0000	2.9.2.1
  @@ -44,7 +44,7 @@
   {
       unsigned int * kip;
       const byte * pkt;
  -    ssize_t pktlen;
  +    size_t pktlen;
       byte keyid[8];
       char fn[BUFSIZ];
       pgpDig dig;
  @@ -61,7 +61,7 @@
   	pktlen = 0;
   	pa = pgpReadPkts(fn, &pkt, &pktlen);
   	if (pa == PGPARMOR_ERROR || pa == PGPARMOR_NONE
  -         || pkt == NULL || pktlen <= 0)
  +         || pkt == NULL || pktlen == 0)
           {
               ec++;
               continue;
  @@ .
Received on Mon Jul 30 04:15:18 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.