Mercurial > hg > freeDiameter
diff libfdproto/dictionary_functions.c @ 1052:b3d623f04b6d
Fix a number of remaining compilation warnings
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Wed, 24 Apr 2013 12:49:00 +0800 |
parents | 2f989d1a21e9 |
children | 7d7266115a34 |
line wrap: on
line diff
--- a/libfdproto/dictionary_functions.c Wed Apr 24 11:17:30 2013 +0800 +++ b/libfdproto/dictionary_functions.c Wed Apr 24 12:49:00 2013 +0800 @@ -231,7 +231,6 @@ with malformed AVP */ char * end = strchr(ret, '\0'); - char * oldend = end; while (end > ret) { end--; char b = *end; @@ -336,7 +335,7 @@ snprintf(ret, STR_LEN, "[invalid length: %zd]", avp_value->os.len); return ret; } - if (diameter_string_to_time_t(avp_value->os.data, avp_value->os.len, &val) != 0) { + if (diameter_string_to_time_t((char *)avp_value->os.data, avp_value->os.len, &val) != 0) { snprintf(ret, STR_LEN, "[time conversion error]"); return ret; }