RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: rpm/build/ pack.c reqprov.c rpm/lib/ rpmds.c rpmfc.c

From: Jeff Johnson <jbj@rpm5.org>
Date: Sat 08 Dec 2007 - 06:15:11 CET
Message-Id: <20071208051511.E7D0834848D@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:   08-Dec-2007 06:15:11
  Branch: HEAD                             Handle: 2007120805151100

  Modified files:
    rpm/build               pack.c reqprov.c
    rpm/lib                 rpmds.c rpmfc.c

  Log:
    - casts to remove several signedness warnings.

  Summary:
    Revision    Changes     Path
    2.272       +1  -1      rpm/build/pack.c
    1.83        +1  -1      rpm/build/reqprov.c
    2.88        +1  -1      rpm/lib/rpmds.c
    1.44        +2  -2      rpm/lib/rpmfc.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/build/pack.c
  ============================================================================
  $ cvs diff -u -r2.271 -r2.272 pack.c
  --- rpm/build/pack.c	7 Dec 2007 19:54:18 -0000	2.271
  +++ rpm/build/pack.c	8 Dec 2007 05:15:11 -0000	2.272
  @@ -534,7 +534,7 @@
   
   	    he->tag = RPMTAG_PROVIDEFLAGS;
   	    he->t = RPM_UINT32_TYPE;
  -	    he->p.ui32p = &fdummy;
  +	    he->p.ui32p = (uint32_t *) &fdummy;
   	    he->c = 1;
   	    he->append = 1;
   	    xx = headerPut(h, he, 0);
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/build/reqprov.c
  ============================================================================
  $ cvs diff -u -r1.82 -r1.83 reqprov.c
  --- rpm/build/reqprov.c	24 Nov 2007 23:15:31 -0000	1.82
  +++ rpm/build/reqprov.c	8 Dec 2007 05:15:11 -0000	1.83
  @@ -127,7 +127,7 @@
   
   	he->tag = flagtag;
   	he->t = RPM_UINT32_TYPE;
  -	he->p.ui32p = &Flags;
  +	he->p.ui32p = (uint32_t *) &Flags;
   	he->c = 1;
   	he->append = 1;
   	xx = headerPut(h, he, 0);
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/lib/rpmds.c
  ============================================================================
  $ cvs diff -u -r2.87 -r2.88 rpmds.c
  --- rpm/lib/rpmds.c	26 Nov 2007 05:16:50 -0000	2.87
  +++ rpm/lib/rpmds.c	8 Dec 2007 05:15:11 -0000	2.88
  @@ -306,7 +306,7 @@
   	if (tagF > 0) {
   	    he->tag = tagF;
   	    xx = headerGet(h, he, 0);
  -	    ds->Flags = he->p.ui32p;
  +	    ds->Flags = (evrFlags * ) he->p.ui32p;
   	}
   	{
   	    he->tag = RPMTAG_ARCH;
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/lib/rpmfc.c
  ============================================================================
  $ cvs diff -u -r1.43 -r1.44 rpmfc.c
  --- rpm/lib/rpmfc.c	24 Nov 2007 23:55:01 -0000	1.43
  +++ rpm/lib/rpmfc.c	8 Dec 2007 05:15:11 -0000	1.44
  @@ -1577,7 +1577,7 @@
   
   	he->tag = RPMTAG_PROVIDEFLAGS;
   	he->t = RPM_UINT32_TYPE;
  -	he->p.ui32p = fc->provides->Flags;
  +	he->p.ui32p = (uint32_t *) fc->provides->Flags;
   assert(he->p.ptr != NULL);
   	xx = headerPut(pkg->header, he, 0);
   /*@=nullpass@*/
  @@ -1603,7 +1603,7 @@
   
   	he->tag = RPMTAG_REQUIREFLAGS;
   	he->t = RPM_UINT32_TYPE;
  -	he->p.ui32p = fc->requires->Flags;
  +	he->p.ui32p = (uint32_t *) fc->requires->Flags;
   assert(he->p.ptr != NULL);
   	xx = headerPut(pkg->header, he, 0);
   /*@=nullpass@*/
  @@ .
Received on Sat Dec 8 06:15:12 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.