use krb5_warn{,x}

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7508 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-12-04 19:50:03 +00:00
parent 978b02b16f
commit 5ef2c74608

View File

@@ -318,7 +318,7 @@ kadm5_c_init_with_context(krb5_context context,
if (s < 0) if (s < 0)
continue; continue;
if (connect (s, a->ai_addr, a->ai_addrlen) < 0) { if (connect (s, a->ai_addr, a->ai_addrlen) < 0) {
warn ("connect(%s)", ctx->admin_server); krb5_warn (context, errno, "connect(%s)", ctx->admin_server);
close (s); close (s);
continue; continue;
} }
@@ -326,7 +326,7 @@ kadm5_c_init_with_context(krb5_context context,
} }
if (a == NULL) { if (a == NULL) {
freeaddrinfo (ai); freeaddrinfo (ai);
warnx ("failed to contact %s", ctx->admin_server); krb5_warnx (context, "failed to contact %s", ctx->admin_server);
return KADM5_FAILURE; return KADM5_FAILURE;
} }
ret = get_cred_cache(context, client_name, service_name, ret = get_cred_cache(context, client_name, service_name,