summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2022-12-30 18:43:17 +0800
committerfengweihao <[email protected]>2022-12-30 18:43:17 +0800
commitc90ac25fbb168f586ce729b251261788b258f585 (patch)
tree507856f1a0e1345723907689b15a209e3b0f95dd /include
parent465c48f7c14d786df0a3d893eac98380ca85a69c (diff)
Support swamkv-cli matching path hints and fix the bugs in the leader election.
Diffstat (limited to 'include')
-rw-r--r--include/swarmkv/swarmkv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/swarmkv/swarmkv.h b/include/swarmkv/swarmkv.h
index 2dc47ff..c48e2bd 100644
--- a/include/swarmkv/swarmkv.h
+++ b/include/swarmkv/swarmkv.h
@@ -94,7 +94,7 @@ void swarmkv_tconsume(struct swarmkv * db, const char * key, size_t keylen, long
//Used by swarmkv-cli
size_t swarmkv_get_possible_command_name(struct swarmkv *db, const char *prefix, const char* cmd_names[], size_t sz);
-const char *swarmkv_get_command_hint(struct swarmkv *db, const char* cmd_name);
+char *swarmkv_get_command_hint(struct swarmkv *db, const char* cmd_name);