twitter / twemproxy

A fast, light-weight proxy for memcached and redis
Apache License 2.0
12.15k stars 2.06k forks source link

Add const value qualifiers for C functions where applicable #628

Closed TysonAndre closed 3 years ago

TysonAndre commented 3 years ago

Problem

Make it easier for readers to understand what arguments are or aren't modified by a function (etc.) Make it harder to accidentally modify a pointer that is assumed to not be modified.

Solution

Add const qualifiers to function signatures, local variables, static variables