]> git.tue.mpg.de Git - paraslash.git/commitdiff
dccp_send.c: Simplify dccp_info().
authorAndre Noll <maan@systemlinux.org>
Mon, 4 Feb 2008 08:42:48 +0000 (09:42 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 4 Feb 2008 08:42:48 +0000 (09:42 +0100)
dccp_send.c

index c94e1624493e511b59c41c61c17205426b869754..7b7c80517f7dee6d5fa7c2a34cf4993cd0dbe28b 100644 (file)
@@ -104,14 +104,12 @@ static void dccp_shutdown_clients(void)
 
 static char *dccp_info(void)
 {
-       char *buf;
        int num_clients = 0;
        struct sender_client *sc, *tmp;
 
        list_for_each_entry_safe(sc, tmp, &clients, node)
                num_clients++;
-       buf = make_message("dccp connected clients: %d\n", num_clients);
-       return buf;
+       return make_message("dccp connected clients: %d\n", num_clients);
 }
 
 static char *dccp_help(void)