RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: rpm-5_2: rpm/lib/ rpm4compat.h

From: Per Øyvind Karlsen <pkarlsen@rpm5.org>
Date: Wed 11 Aug 2010 - 09:27:33 CEST
Message-Id: <20100811072733.A2FC2C5028@rpm5.org>
  RPM Package Manager, CVS Repository
  /cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Per Øyvind Karlsen
  Root:   /v/rpm/cvs                       Email:  pkarlsen@rpm5.org
  Module: rpm                              Date:   11-Aug-2010 09:27:33
  Branch: rpm-5_2                          Handle: 2010081107273300

  Modified files:           (Branch: rpm-5_2)
    rpm/lib                 rpm4compat.h

  Log:
    do more correct c++-style casting for rpmdsSingle() wrapper

  Summary:
    Revision    Changes     Path
    2.23.2.6    +2  -2      rpm/lib/rpm4compat.h
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/lib/rpm4compat.h
  ============================================================================
  $ cvs diff -u -r2.23.2.5 -r2.23.2.6 rpm4compat.h
  --- rpm/lib/rpm4compat.h	6 Aug 2009 04:56:05 -0000	2.23.2.5
  +++ rpm/lib/rpm4compat.h	11 Aug 2010 07:27:33 -0000	2.23.2.6
  @@ -1,7 +1,7 @@
   /*
    * Copyright © 2008 Per Øyvind Karlsen <peroyvind@mandriva.org>
    *
  - * $Id: rpm4compat.h,v 2.23.2.5 2009/08/06 04:56:05 pkarlsen Exp $
  + * $Id: rpm4compat.h,v 2.23.2.6 2010/08/11 07:27:33 pkarlsen Exp $
    */
   
   #ifndef	H_RPM4COMPAT
  @@ -409,7 +409,7 @@
   }
   
   static inline rpmds rpmdsSingle(rpmTag tagN, const char * N, const char * EVR, int_32 Flags){
  -	return rpmdsSingle(tagN, N, EVR, (evrFlags)Flags);
  +	return rpmdsSingle(tagN, N, EVR, static_cast<evrFlags>(Flags));
   }
   #endif
   
  @@ .
Received on Wed Aug 11 09:27:33 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.