Skip to content

Commit b507d1b

Browse files
Clean up compiler warnings
1 parent fb14d95 commit b507d1b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/crypto_impl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
879879
Db *pDb = 0;
880880
sqlite3 *db = ctx->pBt->db;
881881
const char *db_filename = sqlite3_db_filename(db, "main");
882-
const char *migrated_db_filename = sqlite3_mprintf("%s-migrated", db_filename);
882+
char *migrated_db_filename = sqlite3_mprintf("%s-migrated", db_filename);
883883
char *key = ctx->read_ctx->pass;
884884
static const unsigned char aCopy[] = {
885885
BTREE_SCHEMA_VERSION, 1, /* Add one to the old schema cookie */
@@ -938,7 +938,7 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) {
938938
assert( 1==sqlite3BtreeIsInTrans(pDest) );
939939
assert( 1==sqlite3BtreeIsInTrans(pSrc) );
940940

941-
sqlite3CodecGetKey(db, db->nDb - 1, &key, &password_sz);
941+
sqlite3CodecGetKey(db, db->nDb - 1, (void**)&key, &password_sz);
942942
sqlcipher_codec_ctx_set_pass(ctx, key, password_sz, 2);
943943

944944
int i = 0;

0 commit comments

Comments
 (0)