]> git.evergreen-ils.org Git - OpenSRF.git/commit
LP#1234816: improve const-correctness of osrfCachePutString and osrfCachePutObject
authorGalen Charlton <gmc@esilibrary.com>
Wed, 2 Apr 2014 23:05:33 +0000 (16:05 -0700)
committerBill Erickson <berick@esilibrary.com>
Fri, 2 May 2014 18:06:16 +0000 (14:06 -0400)
commit8a8b4cbbae62d3e927b24541f31fec93949b1752
tree64e8744450cd8d56ebcfad61a9c281cd84ef39ac
parent0d2c6d74cf60e000646e534a7682b508c84ea55a
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>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
include/opensrf/osrf_cache.h
src/gateway/osrf_http_translator.c
src/libopensrf/osrf_cache.c