• Wang Yuan's avatar
    Use const char pointer in redismodule.h as far as possible (#10064) · d697daa7
    Wang Yuan authored
    When I used C++ to develop a redis module. i  used `string.data()` as the second parameter `ele`
    of  `RedisModule_DigestAddStringBuffer`, but there is a warning, since we never change the `ele`,
    i think we should use `const char` for it.
    
    This PR adds const to just a handful of module APIs that required it, all not very widely used.
    The implication is a breaking change in terms of compilation error that's easy to resolve, and no ABI impact.
    The affected APIs are around Digest, Info injection, and Cluster bus messages.
    d697daa7
redismodule.h 78.1 KB