projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3bab87
)
apache plugin: Replace C++-style comments.
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
4ac56b1
..
bcc2d26
100644
(file)
--- a/
src/apache.c
+++ b/
src/apache.c
@@
-272,7
+272,7
@@
static int config (oconfig_item_t *ci)
if (lci)
{
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));
lci->key = "Instance";
lci->values_num = 1;
lci->values = (oconfig_value_t *) malloc (lci->values_num * sizeof (oconfig_value_t));
@@
-288,7
+288,7
@@
static int config (oconfig_item_t *ci)
} /* int config */
} /* int config */
-/
/ initialize curl for each host
+/
* initialize curl for each host */
static int init_host (apache_t *st) /* {{{ */
{
static char credentials[1024];
static int init_host (apache_t *st) /* {{{ */
{
static char credentials[1024];
@@
-385,7
+385,7
@@
static int init (void)
static void set_plugin (apache_t *st, value_list_t *vl)
{
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));
if ( (0 == strcmp(st->name, "")) )
{
sstrncpy (vl->plugin, "apache", sizeof (vl->plugin));
@@
-529,7
+529,7
@@
static int apache_read_host (apache_t *st)
break;
}
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;
if ( (st->host == NULL)
|| (0 == strcmp(st->host, "")) ) {
st->host = hostname_g;