summaryrefslogtreecommitdiffstats
path: root/src/util/et/com_err.c
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>1997-03-01 17:28:23 +0000
committerSam Hartman <hartmans@mit.edu>1997-03-01 17:28:23 +0000
commit22b123104922e7ae172be2beea050c2ef8497805 (patch)
tree82a04f1873314f7d5b6224201df6573fd5c9d47e /src/util/et/com_err.c
parente273e03d6334f890dfa249f50a2ee2bc4bac46a4 (diff)
downloadkrb5-22b123104922e7ae172be2beea050c2ef8497805.tar.gz
krb5-22b123104922e7ae172be2beea050c2ef8497805.tar.xz
krb5-22b123104922e7ae172be2beea050c2ef8497805.zip
* com_err.c: Back out last change; it's not needed. Also, remove
debugging cruft. * com_err.h: Do not declare com_err_hook extern if you declare it static in the source. [383] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9992 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/et/com_err.c')
-rw-r--r--src/util/et/com_err.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/util/et/com_err.c b/src/util/et/com_err.c
index 9976fc55a..8823e9eb1 100644
--- a/src/util/et/com_err.c
+++ b/src/util/et/com_err.c
@@ -30,7 +30,7 @@
static void MacMessageBox(errbuf);
#endif
- et_old_error_hook_func com_err_hook = 0;
+static et_old_error_hook_func com_err_hook = 0;
static void default_com_err_proc
ET_P((const char FAR *whoami, errcode_t code,
@@ -98,11 +98,10 @@ KRB5_DLLIMP void KRB5_CALLCONV com_err_va(whoami, code, fmt, ap)
const char FAR *fmt;
va_list ap;
{
- et_old_error_hook_func cef = com_err_hook;
- if (!cef)
+ if (!com_err_hook)
default_com_err_proc(whoami, code, fmt, ap);
else
- (cef)(whoami, code, fmt, ap);
+ (com_err_hook)(whoami, code, fmt, ap);
}