diff options
author | Wen Hui <wen.hui.ware@gmail.com> | 2021-09-20 12:32:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-20 09:32:33 -0700 |
commit | 572abee6f17753fe2af59aeb7c3dd42baee66e1b (patch) | |
tree | 894799fe26c12b81edc8cf757b4a0d377ebd3cda /src/redis-benchmark.c | |
parent | 67fcbdf8a1f094e84a716c522fb5d1128a1efba0 (diff) | |
download | redis-572abee6f17753fe2af59aeb7c3dd42baee66e1b.tar.gz |
Add const for relevant method parameters in redis-benchmark (#9516)
Diffstat (limited to 'src/redis-benchmark.c')
-rw-r--r-- | src/redis-benchmark.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c index 54f4c5387..6ae6ced92 100644 --- a/src/redis-benchmark.c +++ b/src/redis-benchmark.c @@ -971,7 +971,7 @@ static void startBenchmarkThreads() { pthread_join(config.threads[i]->thread, NULL); } -static void benchmark(char *title, char *cmd, int len) { +static void benchmark(const char *title, char *cmd, int len) { client c; config.title = title; @@ -1680,7 +1680,7 @@ int showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData /* Return true if the named test was selected using the -t command line * switch, or if all the tests are selected (no -t passed by user). */ -int test_is_selected(char *name) { +int test_is_selected(const char *name) { char buf[256]; int l = strlen(name); |