* Minor and/or cosmetic changes made during x64 troubleshooting
[citadel.git] / citadel / database_sleepycat.c
index 94fc73ee10f4904fb29470241578cd8ef5b505af..b2b2a691f17556b70592d94b308b0e738b9277c9 100644 (file)
@@ -466,9 +466,9 @@ void cdb_decompress_if_necessary(struct cdbdata *cdb) {
        uncompressed_data = malloc(zheader.uncompressed_len);
 
        if (uncompress( (Bytef *) uncompressed_data,
-                       &destLen,
-                       compressed_data,
-                       sourceLen
+                       (uLongf *)&destLen,
+                       (const Bytef *)compressed_data,
+                       (uLong)sourceLen
        ) != Z_OK) {
                lprintf(CTDL_EMERG, "uncompress() error\n");
                abort();
@@ -761,7 +761,7 @@ void cdb_rewind(int cdb)
        if (MYCURSORS[cdb] != NULL) {
                lprintf(CTDL_EMERG, "cdb_rewind: must close cursor on database %d before reopening.\n", cdb);
                abort();
-               //cclose(MYCURSORS[cdb]);
+               /* cclose(MYCURSORS[cdb]); */
        }
 
        /*