diff options
author | Sam Hartman <hartmans@mit.edu> | 1997-03-01 17:28:23 +0000 |
---|---|---|
committer | Sam Hartman <hartmans@mit.edu> | 1997-03-01 17:28:23 +0000 |
commit | 22b123104922e7ae172be2beea050c2ef8497805 (patch) | |
tree | 82a04f1873314f7d5b6224201df6573fd5c9d47e /src/util/et/com_err.c | |
parent | e273e03d6334f890dfa249f50a2ee2bc4bac46a4 (diff) | |
download | krb5-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.c | 7 |
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); } |