]> diplodocus.org Git - nmh/commitdiff
sbr/oauth.c: Remove const to avoid curl's debug_callback warning.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 28 Apr 2017 21:08:26 +0000 (22:08 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 28 Apr 2017 21:08:26 +0000 (22:08 +0100)
The curl_debug_callback typedef doesn't use const for any of the
function's parameters.  On one of the compilation platforms here,
oauth.c's debug_callback having const specifiers for some parameters
causes compilation warnings, and -Werror stops the compilation.  Remove
them.

sbr/oauth.c

index 3becfdef6868461d3ed7859fc914654352b3c490..741cacb0f26bd3f107ba3048c1848158157ffcb7 100755 (executable)
@@ -878,7 +878,7 @@ make_query_url(char *s, size_t size, CURL *curl, const char *base_url, ...)
 }
 
 static int
 }
 
 static int
-debug_callback(const CURL *handle, curl_infotype type, const char *data,
+debug_callback(CURL *handle, curl_infotype type, char *data,
                size_t size, void *userptr)
 {
     FILE *fp = userptr;
                size_t size, void *userptr)
 {
     FILE *fp = userptr;