From: Marcel Holtmann Date: Sun, 13 Sep 2009 15:16:59 +0000 (+0200) Subject: Move hidden counter variable to be global X-Git-Tag: 0.42~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff8c05164d2dd921e908454fe407499f75718767;p=platform%2Fupstream%2Fconnman.git Move hidden counter variable to be global --- 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