aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-11-16 11:32:17 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-11-16 11:32:17 +0100
commit1b8209edc09f188f3a0f10a9526792f4f55c8aed (patch)
tree3466b8052575d31829c7fae01f4bec31165e51f4
parent2bf2954ba45aca2615a95eee698881f2c93e81b4 (diff)
afm-launch: avoid warnings
Change-Id: I8e650af2eccb99f8b97395a66aba839f4b5802b7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afm-launch.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/afm-launch.c b/src/afm-launch.c
index cdfdc41..d31e24b 100644
--- a/src/afm-launch.c
+++ b/src/afm-launch.c
@@ -109,6 +109,7 @@ static const char readystr[] = "READY=1";
*/
static const int ready_timeout = 1500;
+#if defined(DUMP_LAUNCHERS)
/*
* dump all the known launchers to the 'file'
*/
@@ -132,6 +133,7 @@ static void dump_launchers(FILE *file)
fprintf(file, "\n");
}
}
+#endif
/*
* update 'cread' to point the the next token
@@ -942,7 +944,10 @@ int afm_launch_initialize()
/* reads the configuration file */
rc = read_configuration_file(FWK_LAUNCH_CONF);
- /* dump_launchers(stderr); */
+#if defined(DUMP_LAUNCHERS)
+ if (!rc)
+ dump_launchers(stderr);
+#endif
return rc;
}