* com_err.c: Back out last change; it's not needed. Also, remove
authorSam Hartman <hartmans@mit.edu>
Sat, 1 Mar 1997 17:28:23 +0000 (17:28 +0000)
committerSam Hartman <hartmans@mit.edu>
Sat, 1 Mar 1997 17:28:23 +0000 (17:28 +0000)
  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

src/util/et/ChangeLog
src/util/et/com_err.c
src/util/et/com_err.h

index 6b47675c66055cfb8f56bab41e22681ba9163655..b227d8c2ce160cf416c1fd70c0936d9961dd90c8 100644 (file)
@@ -1,6 +1,8 @@
 Sat Mar  1 11:54:02 1997  Sam Hartman  <hartmans@luminous.MIT.EDU>
 
-       * com_err.c: Make com_err_hook global instead of static to work around either NetBSD or Gcc bug.[383]
+       * com_err.h: Do not declare com_err_hook extern if you want it
+       static in the source file. [383]
+       
 
 Sat Feb 22 12:18:47 1997  Richard Basch  <basch@lehman.com>
 
index 9976fc55a4606b1336824ba9ea4ae55c967966aa..8823e9eb15ee400467ced4b4333b8cd8b4a3f8ce 100644 (file)
@@ -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);
 }
 
 
index c2f5478d21164f5a970a9cfee661081c5b4ac9f7..b425c802325918c4c89f385246a6e4d73f62deb8 100644 (file)
@@ -86,7 +86,7 @@ KRB5_DLLIMP extern errcode_t KRB5_CALLCONV remove_error_table
  * may cause inappropriate display procedures to be called between
  * applications under non-Unix environments.
  */
-extern et_old_error_hook_func com_err_hook;
+
 extern et_old_error_hook_func set_com_err_hook
        ET_P((et_old_error_hook_func));
 extern et_old_error_hook_func reset_com_err_hook