summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3bab87)
raw | patch | inline | side by side (parent: b3bab87)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 15 Apr 2009 09:12:53 +0000 (11:12 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 15 Apr 2009 09:12:53 +0000 (11:12 +0200) |
src/apache.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index 4ac56b1488662bf2ed5f2a0c6ae938c62cc7ab37..bcc2d260ecd407ff9b9ac608004e23d9822e38a3 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
if (lci)
{
- // create a <Instance ""> entry
+ /* create a <Instance ""> entry */
lci->key = "Instance";
lci->values_num = 1;
lci->values = (oconfig_value_t *) malloc (lci->values_num * sizeof (oconfig_value_t));
} /* int config */
-// initialize curl for each host
+/* initialize curl for each host */
static int init_host (apache_t *st) /* {{{ */
{
static char credentials[1024];
static void set_plugin (apache_t *st, value_list_t *vl)
{
- // if there is no instance name, assume apache
+ /* if there is no instance name, assume apache */
if ( (0 == strcmp(st->name, "")) )
{
sstrncpy (vl->plugin, "apache", sizeof (vl->plugin));
break;
}
- // set the host to localhost if st->host is not specified
+ /* set the host to localhost if st->host is not specified */
if ( (st->host == NULL)
|| (0 == strcmp(st->host, "")) ) {
st->host = hostname_g;