From 213e031dda6a34c50c04de0d6041f45ab2db0a91 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Fri, 28 Apr 2017 22:08:26 +0100 Subject: [PATCH] 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. --- sbr/oauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.56.0