/** Set the error and description associated to the response.
*/
-void valerie_response_set_error( valerie_response response, int error_code, char *error_string )
+void valerie_response_set_error( valerie_response response, int error_code, const char *error_string )
{
if ( response->count == 0 )
{
/** Write text to the reponse.
*/
-int valerie_response_write( valerie_response response, char *text, int size )
+int valerie_response_write( valerie_response response, const char *text, int size )
{
int ret = 0;
- char *ptr = text;
+ const char *ptr = text;
while ( size > 0 )
{
int index = response->count - 1;
- char *lf = strchr( ptr, '\n' );
+ const char *lf = strchr( ptr, '\n' );
int length_of_string = 0;
/* Make sure we have space in the dynamic array. */