summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-14 13:39:52 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-14 13:39:52 +0200
commit7d817f06b14c221bf0fbf74610e4d85093e77fcc (patch)
tree9c007051a10b01e106d7a3d8748ceed51da0c7bf /rpmdb
parentfaa7e730f1ff0e2345d0413fa3bdf6d0fec2d8af (diff)
downloadlibrpm-tizen-7d817f06b14c221bf0fbf74610e4d85093e77fcc.tar.gz
librpm-tizen-7d817f06b14c221bf0fbf74610e4d85093e77fcc.tar.bz2
librpm-tizen-7d817f06b14c221bf0fbf74610e4d85093e77fcc.zip
Bunch of silly ssize_t casts
- cuts down the amount of spurious warnings from inlined code...
Diffstat (limited to 'rpmdb')
-rw-r--r--rpmdb/rpmdb_internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmdb/rpmdb_internal.h b/rpmdb/rpmdb_internal.h
index 7e6b1a223..f761d6ebf 100644
--- a/rpmdb/rpmdb_internal.h
+++ b/rpmdb/rpmdb_internal.h
@@ -489,7 +489,7 @@ int dbiPget(dbiIndex dbi, DBC * dbcursor,
assert((flags == DB_NEXT) || (key->data != NULL && key->size > 0));
(void) rpmswEnter(&dbi->dbi_rpmdb->db_getops, 0);
rc = (dbi->dbi_vec->cpget) (dbi, dbcursor, key, pkey, data, flags);
- (void) rpmswExit(&dbi->dbi_rpmdb->db_getops, data->size);
+ (void) rpmswExit(&dbi->dbi_rpmdb->db_getops, (ssize_t) data->size);
return rc;
}
@@ -508,9 +508,9 @@ int dbiPut(dbiIndex dbi, DBC * dbcursor, DBT * key, DBT * data,
{
int rc;
assert(key->data != NULL && key->size > 0 && data->data != NULL && data->size > 0);
- (void) rpmswEnter(&dbi->dbi_rpmdb->db_putops, 0);
+ (void) rpmswEnter(&dbi->dbi_rpmdb->db_putops, (ssize_t) 0);
rc = (dbi->dbi_vec->cput) (dbi, dbcursor, key, data, flags);
- (void) rpmswExit(&dbi->dbi_rpmdb->db_putops, data->size);
+ (void) rpmswExit(&dbi->dbi_rpmdb->db_putops, (ssize_t) data->size);
return rc;
}