antirez/redis — Issue #212: Improve const-correctness
Author: elfring
Created: 2011-11-25 18:37:39+00:00
State: open

I suggest to add the key word "[const](http://www.cprogramming.com/tutorial/const_correctness.html "Const Correctness")" to the type specifiers for parameters like the following.
- list (function "[listIndex](https://github.com/antirez/redis/blob/e2641e09cc0daf44f63f654230f72d22acf3a9af/src/adlist.h#L84)")
- s (function "[string2ll](https://github.com/antirez/redis/blob/5d08193126df54405dae3073c62b7c19ae03d1a4/src/util.h#L8)")
- p, s (function "[ziplistCompare](https://github.com/antirez/redis/blob/d4fb9f4144e72a7918e477c22a6c2a75d9c3c30d/src/ziplist.h#L13)")

Would you like to apply the advices from [an article](http://en.wikipedia.org/wiki/Const-correctness "const-correctness") to more places in your sources?