summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-06-21 13:42:39 -0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-06-27 16:15:08 +0200
commit12dbfca7b45c31ba9de6f64286b15b4a4ce6e015 (patch)
tree5e932beb3b3655c9eb958e4003d84a4436ca0515 /src/main.c
parent4d6fdeeb29d9c78ce99f54c6f7d01e6177706cad (diff)
downloadconnman-12dbfca7b45c31ba9de6f64286b15b4a4ce6e015.tar.gz
connman-12dbfca7b45c31ba9de6f64286b15b4a4ce6e015.tar.bz2
connman-12dbfca7b45c31ba9de6f64286b15b4a4ce6e015.zip
main: Be quiet when config file isn't found
It's ok to run ConnMann without a configuration file, so don't print an error message when this happens.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 0f96d6c3..bb08e401 100644
--- a/src/main.c
+++ b/src/main.c
@@ -57,7 +57,11 @@ static GKeyFile *load_config(const char *file)
g_key_file_set_list_separator(keyfile, ',');
if (!g_key_file_load_from_file(keyfile, file, 0, &err)) {
- connman_error("Parsing %s failed: %s", file, err->message);
+ if (err->code != G_FILE_ERROR_NOENT) {
+ connman_error("Parsing %s failed: %s", file,
+ err->message);
+ }
+
g_error_free(err);
g_key_file_free(keyfile);
return NULL;