Hi Another unused argument, from gcc warnings.
- Lauri
>From b8848b9f1d342dc69b3a522b71483bf07331d25d Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Mon, 7 May 2012 17:49:12 +0300 Subject: [PATCH 2/2] http: Remove unused arg from mk_http_keepalive_check Signed-off-by: Lauri Kasanen <[email protected]> --- src/include/mk_http.h | 2 +- src/mk_header.c | 2 +- src/mk_http.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/mk_http.h b/src/include/mk_http.h index 6c02cc0..3ac99a9 100644 --- a/src/include/mk_http.h +++ b/src/include/mk_http.h @@ -71,7 +71,7 @@ int mk_http_protocol_check(char *protocol, int len); mk_pointer mk_http_protocol_check_str(int protocol); int mk_http_init(struct client_session *cs, struct session_request *sr); -int mk_http_keepalive_check(int socket, struct client_session *cs); +int mk_http_keepalive_check(struct client_session *cs); int mk_http_directory_redirect_check(struct client_session *cs, struct session_request *sr); int mk_http_range_set(struct session_request *sr, long file_size); diff --git a/src/mk_header.c b/src/mk_header.c index b5e91f3..8537ed3 100644 --- a/src/mk_header.c +++ b/src/mk_header.c @@ -283,7 +283,7 @@ int mk_header_send(int fd, struct client_session *cs, /* Connection */ if (sh->connection == 0) { - if (mk_http_keepalive_check(fd, cs) == 0) { + if (mk_http_keepalive_check(cs) == 0) { if (sr->connection.len > 0) { /* Get cached mk_pointers */ mk_pointer *ka_format = mk_cache_get(mk_cache_header_ka); diff --git a/src/mk_http.c b/src/mk_http.c index d79c7ef..7587b08 100644 --- a/src/mk_http.c +++ b/src/mk_http.c @@ -471,7 +471,7 @@ int mk_http_directory_redirect_check(struct client_session *cs, * Check if a connection can continue open using as criteria * the keepalive headers vars and Monkey configuration */ -int mk_http_keepalive_check(int socket, struct client_session *cs) +int mk_http_keepalive_check(struct client_session *cs) { struct session_request *sr_node; struct mk_list *sr_head; @@ -785,7 +785,7 @@ int mk_http_request_end(int socket) * connection can continue working or we must * close it. */ - ka = mk_http_keepalive_check(socket, cs); + ka = mk_http_keepalive_check(cs); mk_request_free_list(cs); if (ka < 0) { -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
