summaryrefslogtreecommitdiff
path: root/python/rpmmi-py.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2003-12-01 19:15:38 +0000
committerjbj <devnull@localhost>2003-12-01 19:15:38 +0000
commit5e20d90422cb49d77248a11711ada17f28bf32de (patch)
treef4de24d364e8d134dd713af55f328b71e9589753 /python/rpmmi-py.c
parent3dcfeb3f9aaf003f29d2c8c0c3a545953f529c08 (diff)
downloadlibrpm-tizen-5e20d90422cb49d77248a11711ada17f28bf32de.tar.gz
librpm-tizen-5e20d90422cb49d77248a11711ada17f28bf32de.tar.bz2
librpm-tizen-5e20d90422cb49d77248a11711ada17f28bf32de.zip
splint fiddles, no warnings.
CVS patchset: 6961 CVS date: 2003/12/01 19:15:38
Diffstat (limited to 'python/rpmmi-py.c')
-rw-r--r--python/rpmmi-py.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/python/rpmmi-py.c b/python/rpmmi-py.c
index 5fc40207f..4766bbdb9 100644
--- a/python/rpmmi-py.c
+++ b/python/rpmmi-py.c
@@ -84,6 +84,7 @@ rpmmi_iter(rpmmiObject * s)
/**
*/
+/*@null@*/
static PyObject *
rpmmi_iternext(rpmmiObject * s)
/*@globals rpmGlobalMacroContext @*/
@@ -100,6 +101,7 @@ rpmmi_iternext(rpmmiObject * s)
/**
*/
+/*@null@*/
static PyObject *
rpmmi_Next(rpmmiObject * s, PyObject *args)
/*@globals rpmGlobalMacroContext, _Py_NoneStruct @*/
@@ -121,6 +123,7 @@ rpmmi_Next(rpmmiObject * s, PyObject *args)
/**
*/
+/*@null@*/
static PyObject *
rpmmi_Instance(rpmmiObject * s, PyObject * args)
/*@*/
@@ -130,7 +133,7 @@ rpmmi_Instance(rpmmiObject * s, PyObject * args)
if (!PyArg_ParseTuple(args, ":Instance"))
return NULL;
- if (s->mi)
+ if (s->mi != NULL)
rc = rpmdbGetIteratorOffset(s->mi);
return Py_BuildValue("i", rc);
@@ -138,6 +141,7 @@ rpmmi_Instance(rpmmiObject * s, PyObject * args)
/**
*/
+/*@null@*/
static PyObject *
rpmmi_Count(rpmmiObject * s, PyObject * args)
/*@*/
@@ -147,7 +151,7 @@ rpmmi_Count(rpmmiObject * s, PyObject * args)
if (!PyArg_ParseTuple(args, ":Instance"))
return NULL;
- if (s->mi)
+ if (s->mi != NULL)
rc = rpmdbGetIteratorCount(s->mi);
return Py_BuildValue("i", rc);
@@ -155,6 +159,7 @@ rpmmi_Count(rpmmiObject * s, PyObject * args)
/**
*/
+/*@null@*/
static PyObject *
rpmmi_Pattern(rpmmiObject * s, PyObject * args)
/*@globals rpmGlobalMacroContext, _Py_NoneStruct @*/