From: Andre Noll Date: Mon, 4 Feb 2008 08:32:43 +0000 (+0100) Subject: dccp_senc.d: No need to use static variable in dccp_info(). X-Git-Tag: v0.3.1~52 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=17081d1ed686e0717a545582dd04e3377f16a6e6;ds=sidebyside dccp_senc.d: No need to use static variable in dccp_info(). --- diff --git a/dccp_send.c b/dccp_send.c index c68f5777..c94e1624 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -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);