]> git.tue.mpg.de Git - paraslash.git/commitdiff
gttp_send: kill http_shutdown_clients_real()
authorAndre <maan@p133.(none)>
Mon, 5 Jun 2006 19:18:16 +0000 (21:18 +0200)
committerAndre <maan@p133.(none)>
Mon, 5 Jun 2006 19:18:16 +0000 (21:18 +0200)
as it is identical to http_shutdown_clients().

http_send.c

index 08d20ec498299beec40de93ccb58461c69c33342..0e7d02415a8cdd70938544c3af66621b05ab630a 100644 (file)
@@ -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;
 }