summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-06-28 16:06:00 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-07-05 09:16:20 +0200
commitf85c934398404bd609b31731620e4ca342fc4cc7 (patch)
treec14d134c01dac3a8136a4f9958d299c3d40bdc07 /src/main.c
parentbaa928cdf4385dbfd3c084b711d5d265c6331260 (diff)
downloadconnman-f85c934398404bd609b31731620e4ca342fc4cc7.tar.gz
connman-f85c934398404bd609b31731620e4ca342fc4cc7.tar.bz2
connman-f85c934398404bd609b31731620e4ca342fc4cc7.zip
main: Move default string arrays top of the file
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/main.c b/src/main.c
index a39adb31..717f1cd0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -42,6 +42,20 @@
#define DEFAULT_INPUT_REQUEST_TIMEOUT 120 * 1000
#define DEFAULT_BROWSER_LAUNCH_TIMEOUT 300 * 1000
+static char *default_auto_connect[] = {
+ "wifi",
+ "ethernet",
+ "cellular",
+ NULL
+};
+
+static char *default_blacklist[] = {
+ "vmnet",
+ "vboxnet",
+ "virbr",
+ NULL
+};
+
static struct {
connman_bool_t bg_scan;
char **pref_timeservers;
@@ -141,18 +155,6 @@ static void parse_config(GKeyFile *config)
char **interfaces;
char **str_list;
gsize len;
- static char *default_auto_connect[] = {
- "wifi",
- "ethernet",
- "cellular",
- NULL
- };
- static char *default_blacklist[] = {
- "vmnet",
- "vboxnet",
- "virbr",
- NULL
- };
int timeout;
if (config == NULL) {