summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-07-02 09:46:35 +0200
committerThomas Haller <thaller@redhat.com>2015-07-03 09:24:03 +0200
commitbd2df64bac5b4fce816d2e76dca9e0ae3da0d3e4 (patch)
treed03e85e98596e8bc360c3923a8a79770255e0820
parent68a1c54fa2786fe772b1fd9077a496a2886dde03 (diff)
downloadNetworkManager-bd2df64bac5b4fce816d2e76dca9e0ae3da0d3e4.tar.gz
config: add NM_CONFIG_KEYFILE_LIST_SEPARATOR define
(cherry picked from commit a05e80913e6b21b38cc1e729de92bc2e1260574e)
-rw-r--r--src/nm-config.c2
-rw-r--r--src/nm-config.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/nm-config.c b/src/nm-config.c
index dc585d292c..6b94207d15 100644
--- a/src/nm-config.c
+++ b/src/nm-config.c
@@ -404,7 +404,7 @@ nm_config_create_keyfile ()
GKeyFile *keyfile;
keyfile = g_key_file_new ();
- g_key_file_set_list_separator (keyfile, ',');
+ g_key_file_set_list_separator (keyfile, NM_CONFIG_KEYFILE_LIST_SEPARATOR);
return keyfile;
}
diff --git a/src/nm-config.h b/src/nm-config.h
index 4eeb8aa886..4cba2fd88f 100644
--- a/src/nm-config.h
+++ b/src/nm-config.h
@@ -46,6 +46,8 @@ G_BEGIN_DECLS
#define NM_CONFIG_DEFAULT_CONNECTIVITY_INTERVAL 300
#define NM_CONFIG_DEFAULT_CONNECTIVITY_RESPONSE "NetworkManager is online" /* NOT LOCALIZED */
+#define NM_CONFIG_KEYFILE_LIST_SEPARATOR ','
+
typedef struct NMConfigCmdLineOptions NMConfigCmdLineOptions;
struct _NMConfig {