diff options
author | Oran Agra <oran@redislabs.com> | 2023-05-15 13:08:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 13:08:15 +0300 |
commit | a51eb05b1895babb17c37c36b963e2bcbd5496d5 (patch) | |
tree | 7be24b09e0a5621a03e9f9ffe9ef27fcb44d8345 /src/functions.c | |
parent | e26a769d9627ebecb8607375580970a740348956 (diff) | |
parent | 986dbf716e0cb904c80bb444635cea3242859cc1 (diff) | |
download | redis-7.2.tar.gz |
Diffstat (limited to 'src/functions.c')
-rw-r--r-- | src/functions.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/functions.c b/src/functions.c index c60d40d3c..f5738ba79 100644 --- a/src/functions.c +++ b/src/functions.c @@ -212,12 +212,12 @@ void functionsLibCtxSwapWithCurrent(functionsLibCtx *new_lib_ctx) { } /* return the current functions ctx */ -functionsLibCtx* functionsLibCtxGetCurrent() { +functionsLibCtx* functionsLibCtxGetCurrent(void) { return curr_functions_lib_ctx; } /* Create a new functions ctx */ -functionsLibCtx* functionsLibCtxCreate() { +functionsLibCtx* functionsLibCtxCreate(void) { functionsLibCtx *ret = zmalloc(sizeof(functionsLibCtx)); ret->libraries = dictCreate(&librariesDictType); ret->functions = dictCreate(&functionDictType); @@ -1075,7 +1075,7 @@ void functionLoadCommand(client *c) { } /* Return memory usage of all the engines combine */ -unsigned long functionsMemory() { +unsigned long functionsMemory(void) { dictIterator *iter = dictGetIterator(engines); dictEntry *entry = NULL; size_t engines_nemory = 0; @@ -1090,7 +1090,7 @@ unsigned long functionsMemory() { } /* Return memory overhead of all the engines combine */ -unsigned long functionsMemoryOverhead() { +unsigned long functionsMemoryOverhead(void) { size_t memory_overhead = dictMemUsage(engines); memory_overhead += dictMemUsage(curr_functions_lib_ctx->functions); memory_overhead += sizeof(functionsLibCtx); @@ -1101,15 +1101,15 @@ unsigned long functionsMemoryOverhead() { } /* Returns the number of functions */ -unsigned long functionsNum() { +unsigned long functionsNum(void) { return dictSize(curr_functions_lib_ctx->functions); } -unsigned long functionsLibNum() { +unsigned long functionsLibNum(void) { return dictSize(curr_functions_lib_ctx->libraries); } -dict* functionsLibGet() { +dict* functionsLibGet(void) { return curr_functions_lib_ctx->libraries; } @@ -1119,7 +1119,7 @@ size_t functionsLibCtxfunctionsLen(functionsLibCtx *functions_ctx) { /* Initialize engine data structures. * Should be called once on server initialization */ -int functionsInit() { +int functionsInit(void) { engines = dictCreate(&engineDictType); if (luaEngineInitEngine() != C_OK) { |