By declaring str as "char *" rather than "const char *", then casting
the result of osrfArrayGetString to (char *), we make the compiler
happier.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
const jsonObject* obj = NULL;
int i = 0;
- const char* str;
+ char* str;
int redactParams = 0;
- while( (str = osrfStringArrayGetString(log_protect_arr, i++)) ) {
+ while( (str = (char *) osrfStringArrayGetString(log_protect_arr, i++)) ) {
//osrfLogInternal(OSRF_LOG_MARK, "Checking for log protection [%s]", str);
if(!strncmp(method, str, strlen(str))) {
redactParams = 1;