]> diplodocus.org Git - nmh/blobdiff - sbr/oauth.c
h/utils.h: Move in nmh_init() prototype from h/prototypes.h.
[nmh] / sbr / oauth.c
index 3becfdef6868461d3ed7859fc914654352b3c490..ccc2ad3c857b5ab7d3979dc3516a99143137613b 100755 (executable)
@@ -240,7 +240,7 @@ set_err_http(mh_oauth_ctx *ctx, const struct curl_ctx *curl_ctx)
 }
 
 static char *
-make_user_agent()
+make_user_agent(void)
 {
     const char *curl = curl_version_info(CURLVERSION_NOW)->version;
     return concat(user_agent, " libcurl/", curl, NULL);
@@ -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;