projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d2d09f
)
Move hidden counter variable to be global
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 13 Sep 2009 15:16:59 +0000
(17:16 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sun, 13 Sep 2009 15:16:59 +0000
(17:16 +0200)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
a32b5ef
..
b7cc82f
100644
(file)
--- 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