From: Andre Date: Mon, 5 Jun 2006 19:18:16 +0000 (+0200) Subject: gttp_send: kill http_shutdown_clients_real() X-Git-Tag: v0.2.14~80 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=968b72b29cf48bae18ecfccbc68b7c241d3d86f7;p=paraslash.git gttp_send: kill http_shutdown_clients_real() as it is identical to http_shutdown_clients(). --- 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; }