mirror of
https://github.com/curl/curl.git
synced 2026-07-26 00:27:16 +03:00
lib: add a Curl_bufref_uptr() function and use it
Function Curl_bufref_ptr() now returns a const char *. New function Curl_bufref_uptr() returns a const unsigned char *. Usage and doc updated. Closes #19827
This commit is contained in:
parent
39d1976b7f
commit
f39b8a1174
13 changed files with 40 additions and 23 deletions
|
|
@ -636,7 +636,7 @@ static CURLcode imap_perform_authenticate(struct Curl_easy *data,
|
|||
struct imap_conn *imapc =
|
||||
Curl_conn_meta_get(data->conn, CURL_META_IMAP_CONN);
|
||||
CURLcode result = CURLE_OK;
|
||||
const char *ir = (const char *)Curl_bufref_ptr(initresp);
|
||||
const char *ir = Curl_bufref_ptr(initresp);
|
||||
|
||||
if(!imapc)
|
||||
return CURLE_FAILED_INIT;
|
||||
|
|
@ -668,8 +668,7 @@ static CURLcode imap_continue_authenticate(struct Curl_easy *data,
|
|||
(void)mech;
|
||||
if(!imapc)
|
||||
return CURLE_FAILED_INIT;
|
||||
return Curl_pp_sendf(data, &imapc->pp,
|
||||
"%s", (const char *)Curl_bufref_ptr(resp));
|
||||
return Curl_pp_sendf(data, &imapc->pp, "%s", Curl_bufref_ptr(resp));
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue