summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2016-01-19 08:35:51 -0500
committerKeith Bostic <keith@wiredtiger.com>2016-01-19 08:35:51 -0500
commit5a84febed74100e6cc67af7a773cb9e9fd3e08db (patch)
tree4721f3ec321eac38f3ad50e73b8871410922c0e4 /test
parent4b67c914e66ca5473d7688de9ac68d326cb47723 (diff)
downloadmongo-5a84febed74100e6cc67af7a773cb9e9fd3e08db.tar.gz
WT-2247, WT-2312: variable-length column-store in-memory page splits
Review comments, get rid of incorrect/unnecessary const declarations.
Diffstat (limited to 'test')
-rw-r--r--test/format/config.h2
-rw-r--r--test/format/format.h18
-rw-r--r--test/format/util.c2
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;