Couple of int -> rpmVSFlags type corrections
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 5 Feb 2008 12:28:06 +0000 (14:28 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 5 Feb 2008 12:28:06 +0000 (14:28 +0200)
lib/rpminstall.c
python/rpmts-py.c

index b9d7e85..8340cc0 100644 (file)
@@ -852,7 +852,7 @@ int rpmRollback(rpmts ts, struct rpmInstallArguments_s * ia, const char ** argv)
     IDT ip;
     int niids = 0;
     int rc = 0;
-    int vsflags, ovsflags;
+    rpmVSFlags vsflags, ovsflags;
     int numAdded;
     int numRemoved;
     rpmps ps;
index 39fbc24..17b8d1f 100644 (file)
@@ -1484,7 +1484,7 @@ static PyObject * rpmts_new(PyTypeObject * subtype, PyObject *args, PyObject *kw
     rpmtsObject * s = (void *) PyObject_New(rpmtsObject, subtype);
 
     char * rootDir = "/";
-    int vsflags = rpmExpandNumeric("%{?__vsflags}");
+    rpmVSFlags vsflags = rpmExpandNumeric("%{?__vsflags}");
     char * kwlist[] = {"rootdir", "vsflags", 0};
 
     if (_rpmts_debug < 0)