RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Jeff Johnson Root: /v/rpm/cvs Email: j...@rpm5.org Module: rpm Date: 08-Dec-2009 19:26:27 Branch: HEAD Handle: 2009120818262700 Modified files: rpm/python rpmmi-py.c Log: - use hdrNum consistently. Summary: Revision Changes Path 1.26 +2 -6 rpm/python/rpmmi-py.c ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/python/rpmmi-py.c ============================================================================ $ cvs diff -u -r1.25 -r1.26 rpmmi-py.c --- rpm/python/rpmmi-py.c 15 May 2009 13:40:59 -0000 1.25 +++ rpm/python/rpmmi-py.c 8 Dec 2009 18:26:27 -0000 1.26 @@ -122,12 +122,8 @@ rpmmi_Instance(rpmmiObject * s) /*...@*/ { - int rc = 0; - - if (s->mi != NULL) - rc = rpmmiInstance(s->mi); - - return Py_BuildValue("i", rc); + uint32_t hdrNum = (s->mi != NULL) ? rpmmiInstance(s->mi) : 0; + return Py_BuildValue("i", hdrNum); } /** @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org