diff options
Diffstat (limited to 'docs/examples/urlapi.c')
-rw-r--r-- | docs/examples/urlapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/examples/urlapi.c b/docs/examples/urlapi.c index 229954d05..0c67480a1 100644 --- a/docs/examples/urlapi.c +++ b/docs/examples/urlapi.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -26,8 +26,8 @@ #include <stdio.h> #include <curl/curl.h> -#if !CURL_AT_LEAST_VERSION(7, 62, 0) -#error "this example requires curl 7.62.0 or later" +#if !CURL_AT_LEAST_VERSION(7, 80, 0) +#error "this example requires curl 7.80.0 or later" #endif int main(void) @@ -47,7 +47,7 @@ int main(void) "http://example.com/path/index.html", 0); if(uc) { - fprintf(stderr, "curl_url_set() failed: %in", uc); + fprintf(stderr, "curl_url_set() failed: %s", curl_url_strerror(uc)); goto cleanup; } |