From 2b4a72bab701de1add388f89a92f1b7a358dab79 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 4 Feb 2008 09:42:48 +0100 Subject: [PATCH] dccp_send.c: Simplify dccp_info(). --- dccp_send.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dccp_send.c b/dccp_send.c index c94e1624..7b7c8051 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -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) -- 2.39.2