1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

1008: rename http_read_post_data to read_http_post

This commit is contained in:
Kalle Olavi Niemitalo 2008-05-26 10:40:43 +03:00 committed by Kalle Olavi Niemitalo
parent 1b707208d3
commit 4768243d0c
3 changed files with 15 additions and 15 deletions

View File

@ -91,7 +91,7 @@ send_more_post_data(struct socket *socket)
unsigned char buffer[POST_BUFFER_SIZE];
int got;
got = http_read_post_data(&http->post, buffer, POST_BUFFER_SIZE);
got = read_http_post(&http->post, buffer, POST_BUFFER_SIZE);
if (got < 0) {
abort_connection(conn, -errno);
} else if (got > 0) {

View File

@ -664,8 +664,8 @@ post_length(unsigned char *post_data, unsigned int *count)
/** @relates http_post */
static int
http_read_post_data_inline(struct http_post *http_post,
unsigned char buffer[], int max)
read_http_post_inline(struct http_post *http_post,
unsigned char buffer[], int max)
{
unsigned char *post = http_post->post_data;
unsigned char *end = strchr(post, FILE_CHAR);
@ -715,8 +715,8 @@ http_read_post_data_inline(struct http_post *http_post,
/** @relates http_post */
static int
http_read_post_data_fd(struct http_post *http_post,
unsigned char buffer[], int max)
read_http_post_fd(struct http_post *http_post,
unsigned char buffer[], int max)
{
int ret;
@ -745,8 +745,8 @@ http_read_post_data_fd(struct http_post *http_post,
*
* @relates http_post */
int
http_read_post_data(struct http_post *http_post,
unsigned char buffer[], int max)
read_http_post(struct http_post *http_post,
unsigned char buffer[], int max)
{
int total = 0;
@ -755,13 +755,13 @@ http_read_post_data(struct http_post *http_post,
int post_fd = http_post->post_fd;
if (post_fd < 0)
chunk = http_read_post_data_inline(http_post,
buffer + total,
max - total);
chunk = read_http_post_inline(http_post,
buffer + total,
max - total);
else
chunk = http_read_post_data_fd(http_post,
buffer + total,
max - total);
chunk = read_http_post_fd(http_post,
buffer + total,
max - total);
/* Be careful not to change errno here. */
if (chunk == 0 && http_post->post_fd == post_fd)

View File

@ -38,8 +38,8 @@ struct http_post {
void init_http_post(struct http_post *http_post);
void done_http_post(struct http_post *http_post);
int http_read_post_data(struct http_post *http_post,
unsigned char buffer[], int max);
int read_http_post(struct http_post *http_post,
unsigned char buffer[], int max);
/** connection.info points to this in HTTP and local CGI connections. */
struct http_connection_info {