From: Andre Noll Date: Mon, 4 Feb 2008 08:42:48 +0000 (+0100) Subject: dccp_send.c: Simplify dccp_info(). X-Git-Tag: v0.3.1~50 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=2b4a72bab701de1add388f89a92f1b7a358dab79;p=paraslash.git dccp_send.c: Simplify dccp_info(). --- 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)