From: Dan Fandrich Date: Mon, 29 Oct 2007 20:57:03 +0000 (+0000) Subject: Reverted the const change--what was I thinking? X-Git-Tag: curl-7_18_0~331 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f77fe55b6efbf090b30a3612b314cd2f8e27b3a;p=thirdparty%2Fcurl.git Reverted the const change--what was I thinking? --- diff --git a/lib/sendf.c b/lib/sendf.c index 00b1be657f..5aa0e5dac3 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -560,7 +560,7 @@ int Curl_read(struct connectdata *conn, /* connection data */ /* return 0 on success */ static int showit(struct SessionHandle *data, curl_infotype type, - const char *ptr, size_t size) + char *ptr, size_t size) { static const char * const s_infotype[CURLINFO_END] = { "* ", "< ", "> ", "{ ", "} ", "{ ", "} " }; @@ -629,7 +629,7 @@ static int showit(struct SessionHandle *data, curl_infotype type, } int Curl_debug(struct SessionHandle *data, curl_infotype type, - const char *ptr, size_t size, + char *ptr, size_t size, struct connectdata *conn) { int rc; diff --git a/lib/sendf.h b/lib/sendf.h index 1d7c256431..f8808f6627 100644 --- a/lib/sendf.h +++ b/lib/sendf.h @@ -70,7 +70,7 @@ CURLcode Curl_write(struct connectdata *conn, /* the function used to output verbose information */ int Curl_debug(struct SessionHandle *handle, curl_infotype type, - const char *data, size_t size, + char *data, size_t size, struct connectdata *conn);