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 c94e162..7b7c805 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)