[TRIVIAL] dccp_send.c: Decrease scope of header_len.
authorAndre Noll <maan@systemlinux.org>
Sat, 2 Feb 2008 10:47:23 +0000 (11:47 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 2 Feb 2008 10:47:23 +0000 (11:47 +0100)
dccp_send.c

index 5449a6a9664f070b0115d3bdb2a6f9471718f796..b1e2f48da54d57662fab5b8a18a2190044e77790 100644 (file)
@@ -188,13 +188,13 @@ static void dccp_send(long unsigned current_chunk,
        struct dccp_client *dc, *tmp;
        int ret;
        char *header_buf;
        struct dccp_client *dc, *tmp;
        int ret;
        char *header_buf;
-       size_t header_len;
 
        if (listen_fd < 0 || !len)
                return;
 
        list_for_each_entry_safe(dc, tmp, &clients, node) {
                if (!dc->header_sent && current_chunk) {
 
        if (listen_fd < 0 || !len)
                return;
 
        list_for_each_entry_safe(dc, tmp, &clients, node) {
                if (!dc->header_sent && current_chunk) {
+                       size_t header_len;
                        header_buf = vss_get_header(&header_len);
                        if (header_buf && header_len > 0) {
                                if (queue_chunk_or_shutdown(dc, -1U, 0) < 0)
                        header_buf = vss_get_header(&header_len);
                        if (header_buf && header_len > 0) {
                                if (queue_chunk_or_shutdown(dc, -1U, 0) < 0)