Commit: 078394ca8365e3eab449c7a8e61210832d52e58a
Parent: b5cca987dfe6cef4179b02c84044173330ceecc9
Author: opask
Date: Sat, 26 Jan 2019 13:48:19 -0700
connect.c: remove uneeded parameter
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/connect.c b/connect.c
@@ -890,7 +890,7 @@ success:
rb->done(c, rb);
}
-struct read_buffer *alloc_read_buffer(struct connection *c)
+struct read_buffer *alloc_read_buffer(void)
{
struct read_buffer *rb;
rb = xmalloc(sizeof(struct read_buffer) + READ_SIZE);
diff --git a/http.c b/http.c
@@ -1146,7 +1146,7 @@ static void http_get_header(struct connection *c)
{
struct read_buffer *rb;
set_connection_timeout(c);
- if (!(rb = alloc_read_buffer(c)))
+ if (!(rb = alloc_read_buffer()))
return;
rb->close = 1;
read_from_socket(c, c->sock1, rb, http_got_header);
diff --git a/links.h b/links.h
@@ -795,7 +795,7 @@ int is_ipv6(int);
int get_pasv_socket(struct connection *, int, int *, unsigned char *);
int get_pasv_socket_ipv6(struct connection *, int, int *, unsigned char *);
void write_to_socket(struct connection *, int, unsigned char *, int, void (*)(struct connection *));
-struct read_buffer *alloc_read_buffer(struct connection *c);
+struct read_buffer *alloc_read_buffer(void);
void read_from_socket(struct connection *, int, struct read_buffer *, void (*)(struct connection *, struct read_buffer *));
void kill_buffer_data(struct read_buffer *, int);