RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: rpm/lib/ rpm4compat.h

From: Per Øyvind Karlsen <pkarlsen@rpm5.org>
Date: Wed 11 Aug 2010 - 08:53:34 CEST
Message-Id: <20100811065334.07854C5F28@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 08:53:33
  Branch: HEAD                             Handle: 2010081106533300

  Modified files:
    rpm/lib                 rpm4compat.h

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

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

  patch -p0 <<'@@ .'
  Index: rpm/lib/rpm4compat.h
  ============================================================================
  $ cvs diff -u -r2.30 -r2.31 rpm4compat.h
  --- rpm/lib/rpm4compat.h	27 Jan 2010 17:14:04 -0000	2.30
  +++ rpm/lib/rpm4compat.h	11 Aug 2010 06:53:33 -0000	2.31
  @@ -1,7 +1,7 @@
   /*
    * Copyright © 2008 Per Øyvind Karlsen <peroyvind@mandriva.org>
    *
  - * $Id: rpm4compat.h,v 2.30 2010/01/27 17:14:04 bero Exp $
  + * $Id: rpm4compat.h,v 2.31 2010/08/11 06:53:33 pkarlsen Exp $
    */
   
   #ifndef	H_RPM4COMPAT
  @@ -405,7 +405,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 08:53:34 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.