LP#1234816: improve const-correctness of osrfCachePutString and osrfCachePutObject user/gmcharlt/lp1234816_osrfCachePutString_const
authorGalen Charlton <gmc@esilibrary.com>
Wed, 2 Apr 2014 23:05:33 +0000 (16:05 -0700)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 2 Apr 2014 23:12:46 +0000 (16:12 -0700)
commita5528ed11fafe6f0c79dfbe93123ef68799e4f2a
tree814bfa3a1e1434ebcba1d58241b4d9bccbe0da34
parent951d97a32db426874c4bb6314e473660d765f302
LP#1234816: improve const-correctness of osrfCachePutString and osrfCachePutObject

Since the cache key is not modified by osrfCachePutString and
osrfCachePutObject, this patch changes the key parameter of those
two functions from char* to const char*.  It also updates one
caller osrfCachePutObject to not cast away const-ness.

This patch has no functional impact, but enables future callers
of osrfCachePut* to pass constant strings without having to
cast away the const-ness.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
include/opensrf/osrf_cache.h
src/gateway/osrf_http_translator.c
src/libopensrf/osrf_cache.c