From 9f244d27cc61fcf4e610dab4a5bb8f2fa091e154 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 25 Nov 2010 10:51:30 -0800 Subject: [PATCH] use krb5_warn --- appl/afsutil/afslog.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appl/afsutil/afslog.c b/appl/afsutil/afslog.c index fe24a5371..bd6807d01 100644 --- a/appl/afsutil/afslog.c +++ b/appl/afsutil/afslog.c @@ -180,9 +180,9 @@ afslog_file(const char *path) static int do_afslog(const char *cell) { - int k5ret, k4ret; + int k5ret; - k5ret = k4ret = 0; + k5ret = 0; #ifdef KRB5 if(context != NULL && id != NULL && use_krb5) { @@ -195,9 +195,9 @@ do_afslog(const char *cell) cell = ""; #ifdef KRB5 if (k5ret) - warnx("krb5_afslog(%s): %s", cell, krb5_get_err_text(context, k5ret)); + krb5_warn(context, k5ret, "krb5_afslog(%s)", cell); #endif - if (k5ret || k4ret) + if (k5ret) return 1; return 0; }