From ff8c05164d2dd921e908454fe407499f75718767 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 13 Sep 2009 17:16:59 +0200 Subject: [PATCH] Move hidden counter variable to be global --- src/network.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network.c b/src/network.c index a32b5ef..b7cc82f 100644 --- a/src/network.c +++ b/src/network.c @@ -30,6 +30,8 @@ #include "connman.h" +static unsigned int hidden_counter = 0; + struct connman_network { struct connman_element element; enum connman_network_type type; @@ -405,7 +407,6 @@ struct connman_network *connman_network_create(const char *identifier, //temp = connman_dbus_encode_string(identifier); if (identifier == NULL) { - static unsigned int hidden_counter; temp = g_strdup_printf("hidden_%d", hidden_counter++); network->hidden = TRUE; } else -- 2.7.4