From 968b72b29cf48bae18ecfccbc68b7c241d3d86f7 Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 5 Jun 2006 21:18:16 +0200 Subject: [PATCH 1/1] gttp_send: kill http_shutdown_clients_real() as it is identical to http_shutdown_clients(). --- http_send.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/http_send.c b/http_send.c index 08d20ec4..0e7d0241 100644 --- a/http_send.c +++ b/http_send.c @@ -126,12 +126,6 @@ static void http_shutdown_client(struct http_client *hc, const char *msg) free(hc); } -static void http_shutdown_clients_real(void) -{ - struct http_client *hc, *tmp; - list_for_each_entry_safe(hc, tmp, &clients, node) - http_shutdown_client(hc, "afs request"); -} static void http_shutdown_clients(void) { struct http_client *hc, *tmp; @@ -379,7 +373,7 @@ static int open_tcp_port(int port) { server_fd = init_tcp_socket(port); if (server_fd < 0) { - http_shutdown_clients_real(); + http_shutdown_clients(); self->status = SENDER_OFF; return server_fd; } @@ -403,7 +397,7 @@ static int http_com_off(__a_unused struct sender_command_data *scd) del_close_on_fork_list(server_fd); server_fd = -1; } - http_shutdown_clients_real(); + http_shutdown_clients(); return 1; } -- 2.39.2