diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-07-10 13:36:47 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-07-10 13:36:47 +0300 |
commit | 896a10be647ae2c2c9fb80fdb1e6e5a5c343cdca (patch) | |
tree | 343ad2e0566137ec9a1e45e44a7f0f9e8319ed7a /rpmdb/db3.c | |
parent | 2f340d4deea1626f3b7e5dac50a6c239d8e95d6d (diff) | |
download | rpm-896a10be647ae2c2c9fb80fdb1e6e5a5c343cdca.tar.gz rpm-896a10be647ae2c2c9fb80fdb1e6e5a5c343cdca.tar.bz2 rpm-896a10be647ae2c2c9fb80fdb1e6e5a5c343cdca.zip |
Cast dbenv error call method set to void* to fix compiler warnings.
Diffstat (limited to 'rpmdb/db3.c')
-rw-r--r-- | rpmdb/db3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdb/db3.c b/rpmdb/db3.c index ec54376bc..2efcbcfec 100644 --- a/rpmdb/db3.c +++ b/rpmdb/db3.c @@ -324,7 +324,7 @@ static int db_init(dbiIndex dbi, const char * dbhome, /* 4.1: dbenv->set_data_dir(???) */ /* 4.1: dbenv->set_encrypt(???) */ - dbenv->set_errcall(dbenv, rpmdb->db_errcall); + dbenv->set_errcall(dbenv, (void *) rpmdb->db_errcall); dbenv->set_errfile(dbenv, rpmdb->db_errfile); dbenv->set_errpfx(dbenv, rpmdb->db_errpfx); /*@=noeffectuncon@*/ @@ -841,7 +841,7 @@ static int db3close(/*@only@*/ dbiIndex dbi, /*@unused@*/ unsigned int flags) if (rc || dbenv == NULL) goto exit; /*@-noeffectuncon@*/ /* FIX: annotate db3 methods */ - dbenv->set_errcall(dbenv, rpmdb->db_errcall); + dbenv->set_errcall(dbenv, (void *) rpmdb->db_errcall); dbenv->set_errfile(dbenv, rpmdb->db_errfile); dbenv->set_errpfx(dbenv, rpmdb->db_errpfx); /* dbenv->set_paniccall(???) */ |