]> git.tue.mpg.de Git - paraslash.git/commitdiff
dccp_senc.d: No need to use static variable in dccp_info().
authorAndre Noll <maan@systemlinux.org>
Mon, 4 Feb 2008 08:32:43 +0000 (09:32 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 4 Feb 2008 08:32:43 +0000 (09:32 +0100)
dccp_send.c

index c68f5777676eff08a4a5a2e5afc59b695ea93ead..c94e1624493e511b59c41c61c17205426b869754 100644 (file)
@@ -104,11 +104,10 @@ static void dccp_shutdown_clients(void)
 
 static char *dccp_info(void)
 {
-       static char *buf;
+       char *buf;
        int num_clients = 0;
        struct sender_client *sc, *tmp;
 
-       free(buf);
        list_for_each_entry_safe(sc, tmp, &clients, node)
                num_clients++;
        buf = make_message("dccp connected clients: %d\n", num_clients);