From: Ralph Corderoy Date: Fri, 28 Apr 2017 21:08:26 +0000 (+0100) Subject: sbr/oauth.c: Remove const to avoid curl's debug_callback warning. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/213e031dda6a34c50c04de0d6041f45ab2db0a91?hp=159b2a1ede7bd581508e8704112d83efd44e0dfa sbr/oauth.c: Remove const to avoid curl's debug_callback warning. 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. --- diff --git a/sbr/oauth.c b/sbr/oauth.c index 3becfdef..741cacb0 100755 --- a/sbr/oauth.c +++ b/sbr/oauth.c @@ -878,7 +878,7 @@ make_query_url(char *s, size_t size, CURL *curl, const char *base_url, ...) } 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;