summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-15 15:10:27 +0200
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-15 15:10:27 +0200
commitfa3b80ce7d6879a327a4dd57c86209f0b975c295 (patch)
treeab096e59c14f8ba4913c1747a4157849f4cc28fc
parent60bdbe5f9ef2c853e4ae214ce61bedc0d880bd2e (diff)
downloadmonitoring-plugins-fa3b80c.tar.gz
Fix -Wcast-function-type compiler warnings
-rw-r--r--plugins/check_curl.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index d0871c48..d3d0199c 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -239,10 +239,10 @@ void print_help (void);
239void print_usage (void); 239void print_usage (void);
240void print_curl_version (void); 240void print_curl_version (void);
241int curlhelp_initwritebuffer (curlhelp_write_curlbuf*); 241int curlhelp_initwritebuffer (curlhelp_write_curlbuf*);
242int curlhelp_buffer_write_callback (void*, size_t , size_t , void*); 242size_t curlhelp_buffer_write_callback(void*, size_t , size_t , void*);
243void curlhelp_freewritebuffer (curlhelp_write_curlbuf*); 243void curlhelp_freewritebuffer (curlhelp_write_curlbuf*);
244int curlhelp_initreadbuffer (curlhelp_read_curlbuf *, const char *, size_t); 244int curlhelp_initreadbuffer (curlhelp_read_curlbuf *, const char *, size_t);
245int curlhelp_buffer_read_callback (void *, size_t , size_t , void *); 245size_t curlhelp_buffer_read_callback(void *, size_t , size_t , void *);
246void curlhelp_freereadbuffer (curlhelp_read_curlbuf *); 246void curlhelp_freereadbuffer (curlhelp_read_curlbuf *);
247curlhelp_ssl_library curlhelp_get_ssl_library (); 247curlhelp_ssl_library curlhelp_get_ssl_library ();
248const char* curlhelp_get_ssl_library_string (curlhelp_ssl_library); 248const char* curlhelp_get_ssl_library_string (curlhelp_ssl_library);
@@ -2171,8 +2171,7 @@ curlhelp_initwritebuffer (curlhelp_write_curlbuf *buf)
2171 return 0; 2171 return 0;
2172} 2172}
2173 2173
2174int 2174size_t curlhelp_buffer_write_callback (void *buffer, size_t size, size_t nmemb, void *stream)
2175curlhelp_buffer_write_callback (void *buffer, size_t size, size_t nmemb, void *stream)
2176{ 2175{
2177 curlhelp_write_curlbuf *buf = (curlhelp_write_curlbuf *)stream; 2176 curlhelp_write_curlbuf *buf = (curlhelp_write_curlbuf *)stream;
2178 2177
@@ -2192,8 +2191,7 @@ curlhelp_buffer_write_callback (void *buffer, size_t size, size_t nmemb, void *s
2192 return (int)(size * nmemb); 2191 return (int)(size * nmemb);
2193} 2192}
2194 2193
2195int 2194size_t curlhelp_buffer_read_callback(void *buffer, size_t size, size_t nmemb, void *stream)
2196curlhelp_buffer_read_callback (void *buffer, size_t size, size_t nmemb, void *stream)
2197{ 2195{
2198 curlhelp_read_curlbuf *buf = (curlhelp_read_curlbuf *)stream; 2196 curlhelp_read_curlbuf *buf = (curlhelp_read_curlbuf *)stream;
2199 2197