mirror of
https://github.com/curl/curl.git
synced 2026-08-05 12:16:13 +03:00
- Make Curl_write and it's callees accept a const pointer, in preparation
of tetetest's patch for curl_easy_send()
This commit is contained in:
parent
cf4570a06f
commit
e2b82b4325
13 changed files with 32 additions and 22 deletions
|
|
@ -237,7 +237,7 @@ Curl_sec_read(struct connectdata *conn, int fd, void *buffer, int length)
|
|||
}
|
||||
|
||||
static int
|
||||
sec_send(struct connectdata *conn, int fd, char *from, int length)
|
||||
sec_send(struct connectdata *conn, int fd, const char *from, int length)
|
||||
{
|
||||
int bytes;
|
||||
void *buf;
|
||||
|
|
@ -292,7 +292,7 @@ Curl_sec_fflush_fd(struct connectdata *conn, int fd)
|
|||
}
|
||||
|
||||
int
|
||||
Curl_sec_write(struct connectdata *conn, int fd, char *buffer, int length)
|
||||
Curl_sec_write(struct connectdata *conn, int fd, const char *buffer, int length)
|
||||
{
|
||||
int len = conn->buffer_size;
|
||||
int tx = 0;
|
||||
|
|
@ -315,7 +315,7 @@ Curl_sec_write(struct connectdata *conn, int fd, char *buffer, int length)
|
|||
}
|
||||
|
||||
ssize_t
|
||||
Curl_sec_send(struct connectdata *conn, int num, char *buffer, int length)
|
||||
Curl_sec_send(struct connectdata *conn, int num, const char *buffer, int length)
|
||||
{
|
||||
curl_socket_t fd = conn->sock[num];
|
||||
return (ssize_t)Curl_sec_write(conn, fd, buffer, length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue