* disp_status.c: Include gss_libinit.h.
authorKen Raeburn <raeburn@mit.edu>
Wed, 7 Jul 2004 21:41:53 +0000 (21:41 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 7 Jul 2004 21:41:53 +0000 (21:41 +0000)
(init_et): Variable deleted.
(krb5_gss_display_status): Don't use init_et; instead, call
gssint_initialize_library.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16558 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/disp_status.c

index 2b77951aa152d91588284399b5922c3f6f283496..17809e20e2f2860bbd95298076abdeb50fe89738 100644 (file)
@@ -1,3 +1,10 @@
+2004-07-07  Ken Raeburn  <raeburn@mit.edu>
+
+       * disp_status.c: Include gss_libinit.h.
+       (init_et): Variable deleted.
+       (krb5_gss_display_status): Don't use init_et; instead, call
+       gssint_initialize_library.
+
 2004-07-06  Ken Raeburn  <raeburn@mit.edu>
 
        * import_name.c [HAVE_GETPWUID_R]: Include stdio.h.
index c49ce12948c95f8ddb44be89c54dc3a056268509..1988d50c67798721358a56e1db0d09462625094b 100644 (file)
  */
 
 #include "gssapiP_krb5.h"
+#include "gss_libinit.h"
 #include "com_err.h"
 
 /* XXXX internationalization!! */
 
 /**/
 
-static int init_et = 0;
-
-/**/
-
 OM_uint32
 krb5_gss_display_status(minor_status, status_value, status_type,
                        mech_type, message_context, status_string)
@@ -55,10 +52,7 @@ krb5_gss_display_status(minor_status, status_value, status_type,
       return(g_display_major_status(minor_status, status_value,
                                    message_context, status_string));
    } else if (status_type == GSS_C_MECH_CODE) {
-      if (!init_et) {
-        initialize_k5g_error_table();
-        init_et = 1;
-      }
+      (void) gssint_initialize_library();
 
       if (*message_context) {
         *minor_status = (OM_uint32) G_BAD_MSG_CTX;