summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 390817c)
raw | patch | inline | side by side (parent: 390817c)
author | octo <octo> | |
Mon, 20 Mar 2006 17:06:18 +0000 (17:06 +0000) | ||
committer | octo <octo> | |
Mon, 20 Mar 2006 17:06:18 +0000 (17:06 +0000) |
src/apache.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index 7bb0a2acb3c0368deb99366b954953435d959efa..dd5e2c726dd060b1d886f2ac5e073030ed5c79e2 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
return (len);
}
-static void config_set (char **var, char *value)
+static int config_set (char **var, char *value)
{
if (*var != NULL)
{
static void init (void)
{
#if APACHE_HAVE_READ
- static credentials[1024];
+ static char credentials[1024];
if (curl != NULL)
{
curl_easy_cleanup (curl);
}
- if ((curl = curl_easy_init (CURL_GLOBAL_NOTHING)) == NULL)
+ if ((curl = curl_easy_init ()) == NULL)
{
syslog (LOG_ERR, "apache: `curl_easy_init' failed.");
return;
submit ("apache_scoreboard", "idle_cleanup", idle_cleanup);
}
-static void read (void)
+static void apache_read (void)
{
- CURLcode status;
int i;
char *ptr;
if (curl_easy_perform (curl) != 0)
{
- syslog (LOG_WARN, "apache: curl_easy_perform failed: %s", apache_curl_error);
+ syslog (LOG_WARNING, "apache: curl_easy_perform failed: %s", apache_curl_error);
return;
}
apache_buffer_len = 0;
}
#else
-# define read NULL
+# define apache_read NULL
#endif /* APACHE_HAVE_READ */
void module_register (void)
{
- plugin_register (MODULE_NAME, init, read, NULL);
+ plugin_register (MODULE_NAME, init, apache_read, NULL);
plugin_register ("apache_requests", NULL, NULL, requests_write);
plugin_register ("apache_bytes", NULL, NULL, bytes_write);
plugin_register ("apache_scoreboard", NULL, NULL, scoreboard_write);