mirror of
https://abf.rosa.ru/djam/rpm.git
synced 2025-02-23 18:33:04 +00:00
57 lines
2.3 KiB
Diff
57 lines
2.3 KiB
Diff
![]() |
--- rpm-5.4.10/rpmdb/rpmdb.h.typecast~ 2013-01-16 18:43:33.115896979 +0100
|
||
|
+++ rpm-5.4.10/rpmdb/rpmdb.h 2013-01-16 18:43:37.789965686 +0100
|
||
|
@@ -938,7 +938,7 @@ fprintf(stderr, "<-- %s(%p,%p,0x%x) logc
|
||
|
/*@unused@*/ static inline
|
||
|
int rpmlgcGet(rpmdb rpmdb, DB_LSN * _lsn, DBT * data, uint32_t flags)
|
||
|
{
|
||
|
- DB_LOGC * _logc = rpmdb->db_logc;
|
||
|
+ DB_LOGC * _logc = (DB_LOGC*)rpmdb->db_logc;
|
||
|
int rc = (_logc ? _logc->get(_logc, _lsn, data, flags) : ENOTSUP);
|
||
|
if (_rpmdb_debug)
|
||
|
fprintf(stderr, "<-- %s(%p,%p,%p,0x%x) rc %d\n", "logc->get", _logc, _lsn, data, flags, rc);
|
||
|
@@ -948,7 +948,7 @@ fprintf(stderr, "<-- %s(%p,%p,%p,0x%x) r
|
||
|
/*@unused@*/ static inline
|
||
|
int rpmlgcClose(rpmdb rpmdb)
|
||
|
{
|
||
|
- DB_LOGC * _logc = rpmdb->db_logc;
|
||
|
+ DB_LOGC * _logc = (DB_LOGC*)rpmdb->db_logc;
|
||
|
uint32_t _flags = 0;
|
||
|
int rc = (_logc ? _logc->close(_logc, _flags) : ENOTSUP);
|
||
|
rpmdb->db_logc = NULL;
|
||
|
@@ -1026,7 +1026,7 @@ fprintf(stderr, "<-- %s(%p,%d) nwrote %d
|
||
|
/*@unused@*/ static inline
|
||
|
int rpmmpfClose(rpmdb rpmdb)
|
||
|
{
|
||
|
- DB_MPOOLFILE * mpf = rpmdb->db_mpf;
|
||
|
+ DB_MPOOLFILE * mpf = (DB_MPOOLFILE*)rpmdb->db_mpf;
|
||
|
uint32_t _flags = 0;
|
||
|
int rc = (mpf ? mpf->close(mpf, _flags) : ENOTSUP);
|
||
|
rpmdb->db_mpf = NULL;
|
||
|
@@ -1038,7 +1038,7 @@ fprintf(stderr, "<-- %s(%p) rc %d\n", "m
|
||
|
/*@unused@*/ static inline
|
||
|
int rpmmpfGet(rpmdb rpmdb, uint32_t * _pgnop, uint32_t _flags, void ** _pagep)
|
||
|
{
|
||
|
- DB_MPOOLFILE * mpf = rpmdb->db_mpf;
|
||
|
+ DB_MPOOLFILE * mpf = (DB_MPOOLFILE*)rpmdb->db_mpf;
|
||
|
DB_TXN * _txnid = (DB_TXN*)rpmdb->db_txn;
|
||
|
int rc = mpf->get(mpf, _pgnop, _txnid, _flags, _pagep);
|
||
|
if (_rpmdb_debug)
|
||
|
@@ -1072,7 +1072,7 @@ exit:
|
||
|
/*@unused@*/ static inline
|
||
|
int rpmmpfPut(rpmdb rpmdb, void * _page, uint32_t flags)
|
||
|
{
|
||
|
- DB_MPOOLFILE * mpf = rpmdb->db_mpf;
|
||
|
+ DB_MPOOLFILE * mpf = (DB_MPOOLFILE*) rpmdb->db_mpf;
|
||
|
uint32_t _priority = DB_PRIORITY_DEFAULT;
|
||
|
int rc = mpf->put(mpf, _page, (DB_CACHE_PRIORITY)_priority, flags);
|
||
|
if (_rpmdb_debug)
|
||
|
@@ -1083,7 +1083,7 @@ fprintf(stderr, "<-- %s(%p,%p,0x%x,0x%x)
|
||
|
/*@unused@*/ static inline
|
||
|
int rpmmpfSync(rpmdb rpmdb)
|
||
|
{
|
||
|
- DB_MPOOLFILE * mpf = rpmdb->db_mpf;
|
||
|
+ DB_MPOOLFILE * mpf = (DB_MPOOLFILE*)rpmdb->db_mpf;
|
||
|
int rc = (mpf ? mpf->sync(mpf) : ENOTSUP);
|
||
|
if (_rpmdb_debug)
|
||
|
fprintf(stderr, "<-- %s(%p) rc %d\n", "mpf->close", mpf, rc);
|