From: Dan Fandrich Date: Mon, 29 Oct 2007 18:32:20 +0000 (+0000) Subject: Made some pointers const X-Git-Tag: upstream/7.37.1~8474 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68ee002ad013208f3818a034135b91ed15724c70;p=platform%2Fupstream%2Fcurl.git Made some pointers const --- diff --git a/lib/sendf.c b/lib/sendf.c index 5aa0e5d..00b1be6 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, - char *ptr, size_t size) + const 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, - char *ptr, size_t size, + const char *ptr, size_t size, struct connectdata *conn) { int rc; diff --git a/lib/sendf.h b/lib/sendf.h index f8808f6..1d7c256 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, - char *data, size_t size, + const char *data, size_t size, struct connectdata *conn);