X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnginx.c;h=e493cc941560c35b50d684c24cd0ca0edca0dbff;hb=591c55cdb4e56f229d27d93a28a75e8a506def15;hp=4e4ce3bbc6115572873668a76507f80ccd82b316;hpb=8395c8dbb8f5a872c5cde8db4c47a34cdb5f7c2f;p=collectd.git diff --git a/src/nginx.c b/src/nginx.c index 4e4ce3bb..e493cc94 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -188,15 +188,14 @@ static int init (void) } else { - curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, - CDTIME_T_TO_MS(plugin_get_interval())); + curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, (long) CDTIME_T_TO_MS(plugin_get_interval())); } #endif return (0); } /* void init */ -static void submit (char *type, char *inst, long long value) +static void submit (const char *type, const char *inst, long long value) { value_t values[1]; value_list_t vl = VALUE_LIST_INIT;