summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRalf Corsépius <corsepiu@fedoraproject.org>2007-10-26 13:24:14 +0200
committerRalf Corsépius <corsepiu@fedoraproject.org>2007-10-26 13:24:14 +0200
commitbebeb89735f4927d33233d2c49e91919187f1c91 (patch)
treedab33f24de6f672de42e41af4787ceb8494a283c /python
parentbbce1581029dddbdcdd76a0b969fd8a8fe5614bf (diff)
downloadlibrpm-tizen-bebeb89735f4927d33233d2c49e91919187f1c91.tar.gz
librpm-tizen-bebeb89735f4927d33233d2c49e91919187f1c91.tar.bz2
librpm-tizen-bebeb89735f4927d33233d2c49e91919187f1c91.zip
Eliminate [u|]int_[8|16|32]. Use c99 stdint.h types instead.
Diffstat (limited to 'python')
-rw-r--r--python/header-py.c14
-rw-r--r--python/rpmts-py.c8
2 files changed, 11 insertions, 11 deletions
diff --git a/python/header-py.c b/python/header-py.c
index 5a1fb62d0..f42d69238 100644
--- a/python/header-py.c
+++ b/python/header-py.c
@@ -139,9 +139,9 @@ struct hdrObject_s {
char ** md5list;
char ** fileList;
char ** linkList;
- int_32 * fileSizes;
- int_32 * mtimes;
- int_32 * uids, * gids; /* XXX these tags are not used anymore */
+ int32_t * fileSizes;
+ int32_t * mtimes;
+ int32_t * uids, * gids; /* XXX these tags are not used anymore */
unsigned short * rdevs;
unsigned short * modes;
} ;
@@ -374,8 +374,8 @@ long tagNumFromPyObject (PyObject *item)
* @retval c address of number of values
* @return 0 on success, 1 on bad magic, 2 on error
*/
-static int dressedHeaderGetEntry(Header h, int_32 tag, int_32 *type,
- void **p, int_32 *c)
+static int dressedHeaderGetEntry(Header h, int32_t tag, int32_t *type,
+ void **p, int32_t *c)
{
switch (tag) {
case RPMTAG_OLDFILENAMES:
@@ -794,8 +794,8 @@ int rpmMergeHeaders(PyObject * list, FD_t fd, int matchTag)
{
Header h;
HeaderIterator hi;
- int_32 * newMatch;
- int_32 * oldMatch;
+ int32_t * newMatch;
+ int32_t * oldMatch;
hdrObject * hdr;
int count = 0;
int type, c, tag;
diff --git a/python/rpmts-py.c b/python/rpmts-py.c
index 7822ed5ca..76b70dfc8 100644
--- a/python/rpmts-py.c
+++ b/python/rpmts-py.c
@@ -282,7 +282,7 @@ fprintf(stderr, "*** rpmts_AddErase(%p) ts %p\n", s, s->ts);
mi = rpmdbFreeIterator(mi);
} else
if (PyInt_Check(o)) {
- uint_32 instance = PyInt_AsLong(o);
+ uint32_t instance = PyInt_AsLong(o);
mi = rpmtsInitIterator(s->ts, RPMDBI_PACKAGES, &instance, sizeof(instance));
if (instance == 0 || mi == NULL) {
@@ -292,7 +292,7 @@ fprintf(stderr, "*** rpmts_AddErase(%p) ts %p\n", s, s->ts);
} else {
Header h;
while ((h = rpmdbNextIterator(mi)) != NULL) {
- uint_32 recOffset = rpmdbGetIteratorOffset(mi);
+ uint32_t recOffset = rpmdbGetIteratorOffset(mi);
if (recOffset)
rpmtsAddEraseElement(s->ts, h, recOffset);
break;
@@ -573,7 +573,7 @@ rpmts_Rollback(rpmtsObject * s, PyObject * args, PyObject * kwds)
struct rpmInstallArguments_s * ia = alloca(sizeof(*ia));
rpmtransFlags transFlags;
const char ** av = NULL;
- uint_32 rbtid;
+ uint32_t rbtid;
int rc;
char * kwlist[] = {"transactionId", NULL};
@@ -815,7 +815,7 @@ fprintf(stderr, "*** rpmts_SetVSFlags(%p) ts %p\n", s, s->ts);
static PyObject *
rpmts_SetColor(rpmtsObject * s, PyObject * args, PyObject * kwds)
{
- uint_32 tscolor;
+ uint32_t tscolor;
char * kwlist[] = {"color", NULL};
if (_rpmts_debug)