diff options
-rw-r--r-- | test/format/config.h | 2 | ||||
-rw-r--r-- | test/format/format.h | 18 | ||||
-rw-r--r-- | test/format/util.c | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/test/format/config.h b/test/format/config.h index 00e4ed963f6..e74b40514c8 100644 --- a/test/format/config.h +++ b/test/format/config.h @@ -54,7 +54,7 @@ typedef struct { uint32_t maxrand; /* Maximum value randomly chosen */ uint32_t maxset; /* Maximum value explicitly set */ uint32_t *v; /* Value for this run */ - const char **vstr; /* Value for string options */ + char **vstr; /* Value for string options */ } CONFIG; #define COMPRESSION_LIST \ diff --git a/test/format/format.h b/test/format/format.h index a50b7b384b0..d150e586497 100644 --- a/test/format/format.h +++ b/test/format/format.h @@ -176,26 +176,26 @@ typedef struct { uint32_t c_cache; uint32_t c_compact; uint32_t c_checkpoints; - const char *c_checksum; + char *c_checksum; uint32_t c_chunk_size; - const char *c_compression; - const char *c_encryption; - const char *c_config_open; + char *c_compression; + char *c_encryption; + char *c_config_open; uint32_t c_data_extend; - const char *c_data_source; + char *c_data_source; uint32_t c_delete_pct; uint32_t c_dictionary; uint32_t c_direct_io; uint32_t c_evict_max; uint32_t c_firstfit; - const char *c_file_type; + char *c_file_type; uint32_t c_huffman_key; uint32_t c_huffman_value; uint32_t c_in_memory; uint32_t c_insert_pct; uint32_t c_internal_key_truncation; uint32_t c_intl_page_max; - const char *c_isolation; + char *c_isolation; uint32_t c_key_gap; uint32_t c_key_max; uint32_t c_key_min; @@ -203,7 +203,7 @@ typedef struct { uint32_t c_leak_memory; uint32_t c_logging; uint32_t c_logging_archive; - const char *c_logging_compression; + char *c_logging_compression; uint32_t c_logging_prealloc; uint32_t c_long_running_txn; uint32_t c_lsm_worker_threads; @@ -309,7 +309,7 @@ void config_print(int); void config_setup(void); void config_single(const char *, int); void *dmalloc(size_t); -void *dstrdup(const char *); +char *dstrdup(const char *); void fclose_and_clear(FILE **); void key_gen(uint8_t *, size_t *, uint64_t); void key_gen_insert(WT_RAND_STATE *, uint8_t *, size_t *, uint64_t); diff --git a/test/format/util.c b/test/format/util.c index 118159d5d8f..2b6b9d67fc3 100644 --- a/test/format/util.c +++ b/test/format/util.c @@ -50,7 +50,7 @@ dmalloc(size_t len) * dstrdup -- * Call strdup, dying on failure. */ -void * +char * dstrdup(const char *str) { char *p; |