* conv_creds.c (krb524_init_ets, krb524_convert_creds_kdc): Add forward declarations...
authorKen Raeburn <raeburn@mit.edu>
Sat, 24 Apr 2004 22:27:47 +0000 (22:27 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 24 Apr 2004 22:27:47 +0000 (22:27 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16271 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/conv_creds.c

index 2d4ef8befdcd7bf6ffd182c9ce02f87ffb736482..9305d9014f79895632c2cdb9c6dfbf0b59aba339 100644 (file)
@@ -1,5 +1,8 @@
 2004-04-24  Ken Raeburn  <raeburn@mit.edu>
 
+       * conv_creds.c (krb524_init_ets, krb524_convert_creds_kdc): Add
+       forward declarations to silence gcc warnings.
+
        * init_ctx.c (init_common): In UNIX case, check the return value
        from krb5int_initialize_library.
 
index 6d4c109f1f7ca905adf23f16318083f0854dcef5..d61b0a3b5774b4abc64f443b69269c158d85d1e5 100644 (file)
@@ -271,6 +271,15 @@ krb5_524_convert_creds(krb5_context context, krb5_creds *v5creds,
    OS and UNIX, but Windows should be okay.  */
 #ifndef _WIN32
 #undef krb524_convert_creds_kdc
+#undef krb524_init_ets
+
+/* Declarations ahead of the definitions will suppress some gcc
+   warnings.  */
+void KRB5_CALLCONV krb524_init_ets (void);
+krb5_error_code KRB5_CALLCONV
+krb524_convert_creds_kdc(krb5_context context, krb5_creds *v5creds,
+                        struct credentials *v4creds);
+
 krb5_error_code KRB5_CALLCONV
 krb524_convert_creds_kdc(krb5_context context, krb5_creds *v5creds,
                         struct credentials *v4creds)
@@ -278,7 +287,6 @@ krb524_convert_creds_kdc(krb5_context context, krb5_creds *v5creds,
     return krb5_524_convert_creds(context, v5creds, v4creds);
 }
 
-#undef krb524_init_ets
 void KRB5_CALLCONV krb524_init_ets ()
 {
 }