Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
conf/afm-launch.conf: use --roothttp=htdocs only for HTML5 applications
[src/app-framework-main.git]
/
src
/
afm-launch.c
diff --git
a/src/afm-launch.c
b/src/afm-launch.c
index
cdfdc41
..
8391943
100644
(file)
--- 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;
*/
static const int ready_timeout = 1500;
+#if defined(DUMP_LAUNCHERS)
/*
* dump all the known launchers to the 'file'
*/
/*
* dump all the known launchers to the 'file'
*/
@@
-132,6
+133,7
@@
static void dump_launchers(FILE *file)
fprintf(file, "\n");
}
}
fprintf(file, "\n");
}
}
+#endif
/*
* update 'cread' to point the the next token
/*
* update 'cread' to point the the next token
@@
-854,7
+856,7
@@
static struct desc_launcher *search_launcher(const char *type,
for (dl = launchers ; dl ; dl = dl->next)
if (dl->mode == mode)
for (tl = dl->types ; tl != NULL ; tl = tl->next)
for (dl = launchers ; dl ; dl = dl->next)
if (dl->mode == mode)
for (tl = dl->types ; tl != NULL ; tl = tl->next)
- if (!strcmp(tl->type, type))
+ if (!strc
asec
mp(tl->type, type))
return dl;
return NULL;
}
return dl;
return NULL;
}
@@
-942,7
+944,10
@@
int afm_launch_initialize()
/* reads the configuration file */
rc = read_configuration_file(FWK_LAUNCH_CONF);
/* 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;
}
return rc;
}