]> granicus.if.org Git - curl/commitdiff
sendf: use failf() rather than Curl_failf()
authorDaniel Gustafsson <daniel@yesql.se>
Thu, 13 Sep 2018 08:48:21 +0000 (10:48 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Thu, 13 Sep 2018 08:48:21 +0000 (10:48 +0200)
The failf() macro is the name used for invoking Curl_failf(). While
there isn't a way to turn off failf like there is for infof, but it's
still a good idea to use the macro.

Reviewed-by: Daniel Stenberg <daniel@haxx.se>
lib/krb5.c

index 46c56085bb0e462f44b1cf86a489e9aad6d6a2c8..e51dcd1c6803ae70f553a117b5697b2396c95e65 100644 (file)
@@ -206,7 +206,7 @@ krb5_auth(void *app_data, struct connectdata *conn)
     if(maj != GSS_S_COMPLETE) {
       gss_release_name(&min, &gssname);
       if(service == srv_host) {
-        Curl_failf(data, "Error importing service name %s@%s", service, host);
+        failf(data, "Error importing service name %s@%s", service, host);
         return AUTH_ERROR;
       }
       service = srv_host;
@@ -291,8 +291,7 @@ krb5_auth(void *app_data, struct connectdata *conn)
                                       (unsigned char **)&_gssresp.value,
                                       &_gssresp.length);
           if(result) {
-            Curl_failf(data, "base64-decoding: %s",
-                       curl_easy_strerror(result));
+            failf(data, "base64-decoding: %s", curl_easy_strerror(result));
             ret = AUTH_CONTINUE;
             break;
           }