git » nmdb » commit 92cd783

Remove wrong static attribute in tipc.c.

author Alberto Bertogli
2007-06-07 04:23:40 UTC
committer Alberto Bertogli
2007-06-07 04:23:40 UTC
parent 2dc32f844d36921b0d9bd576e82e98cc07887e5e

Remove wrong static attribute in tipc.c.

The struct sockaddr_tipc should not be static.
Luckily because the function is only called once, it didn't have any
impact.

Signed-off-by: Alberto Bertogli <albertito@gmail.com>

nmdb/tipc.c +1 -1

diff --git a/nmdb/tipc.c b/nmdb/tipc.c
index a239805..3b92fbb 100644
--- a/nmdb/tipc.c
+++ b/nmdb/tipc.c
@@ -157,7 +157,7 @@ void tipc_reply_cas(struct req_info *req, uint32_t reply)
 int tipc_init(void)
 {
 	int fd, rv;
-	static struct sockaddr_tipc srvsa;
+	struct sockaddr_tipc srvsa;
 
 	srvsa.family = AF_TIPC;
 	if (settings.tipc_lower == settings.tipc_upper)