/* Read and initialize compression type */
if(!compint_to_int(&tmp, header+length, &length, max_length))
return False;
- if(!zck_set_ioption(zck, ZCK_COMP_TYPE, tmp))
+ if(!comp_ioption(zck, ZCK_COMP_TYPE, tmp))
return False;
if(!zck_comp_init(zck))
return False;
int hash_type;
if(!compint_to_int(&hash_type, data + length, &length, max_length))
return False;
- if(!zck_set_ioption(zck, ZCK_HASH_CHUNK_TYPE, hash_type))
+ if(!set_chunk_hash_type(zck, hash_type))
return False;
/* Read number of index entries */
/* Compression options */
} else if(option < 2000) {
+ VALIDATE_WRITE(zck);
return comp_soption(zck, option, value, length);
/* Unknown options */
if(!zck_comp_reset(zck))
return False;
zck_log(ZCK_LOG_DEBUG, "Setting dict\n");
- if(!zck_set_soption(zck, ZCK_COMP_DICT, data, size))
+ if(!comp_soption(zck, ZCK_COMP_DICT, data, size))
return False;
free(data);
if(!zck_comp_init(zck))