* com_err.c (default_com_err_proc, com_err_va, set_com_err_hook): Define with prototy...
authorKen Raeburn <raeburn@mit.edu>
Mon, 2 Sep 2002 20:56:26 +0000 (20:56 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 2 Sep 2002 20:56:26 +0000 (20:56 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14809 dc483132-0cff-0310-8789-dd5450dbe970

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

index 2ca669ced3fd6ca30a9f66f081db9e8a2eaf7d72..dd26b00db8080f15c501ccec570acbc3919e4997 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-02  Ken Raeburn  <raeburn@mit.edu>
+
+       * com_err.c (default_com_err_proc, com_err_va, set_com_err_hook):
+       Define with prototype syntax.
+
 2002-08-29  Ken Raeburn  <raeburn@mit.edu>
 
        * Makefile.in: Revert $(S)=>/ change, for Windows support.
index c59cad7f0253aebe2b8fc911497ffaba2bbad658..ef03d1232f12f168d0acc44b1b1f0f4dd2881f48 100644 (file)
@@ -36,13 +36,7 @@ static void MacMessageBox(char *errbuf);
 static /*@null@*/ et_old_error_hook_func com_err_hook = 0;
 
 static void default_com_err_proc (const char *whoami, errcode_t code,
-                                 const char *fmt, va_list ap);
-
-static void default_com_err_proc(whoami, code, fmt, ap)
-       const char *whoami;
-       errcode_t code;
-       const char *fmt;
-       va_list ap;
+                                 const char *fmt, va_list ap)
 {
 #if defined(_WIN32) || defined(macintosh)
 
@@ -98,11 +92,10 @@ static void default_com_err_proc(whoami, code, fmt, ap)
 #endif
 }
 
-void KRB5_CALLCONV com_err_va(whoami, code, fmt, ap)
-       const char *whoami;
-       errcode_t code;
-       const char *fmt;
-       va_list ap;
+void KRB5_CALLCONV com_err_va(const char *whoami,
+                             errcode_t code,
+                             const char *fmt,
+                             va_list ap)
 {
        if (!com_err_hook)
                default_com_err_proc(whoami, code, fmt, ap);
@@ -112,8 +105,8 @@ void KRB5_CALLCONV com_err_va(whoami, code, fmt, ap)
 
 
 void KRB5_CALLCONV_C com_err(const char *whoami,
-                                        errcode_t code,
-                                        const char *fmt, ...)
+                            errcode_t code,
+                            const char *fmt, ...)
 {
        va_list ap;
 
@@ -123,8 +116,7 @@ void KRB5_CALLCONV_C com_err(const char *whoami,
 }
 
 #if !(defined(_WIN32))
-et_old_error_hook_func set_com_err_hook (new_proc)
-       et_old_error_hook_func new_proc;
+et_old_error_hook_func set_com_err_hook (et_old_error_hook_func new_proc)
 {
        et_old_error_hook_func x = com_err_hook;