projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62e9f05
)
dccp_senc.d: No need to use static variable in dccp_info().
author
Andre Noll
<maan@systemlinux.org>
Mon, 4 Feb 2008 08:32:43 +0000
(09:32 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Mon, 4 Feb 2008 08:32:43 +0000
(09:32 +0100)
dccp_send.c
patch
|
blob
|
history
diff --git
a/dccp_send.c
b/dccp_send.c
index c68f5777676eff08a4a5a2e5afc59b695ea93ead..c94e1624493e511b59c41c61c17205426b869754 100644
(file)
--- 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);