summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/krb/ChangeLog3
-rw-r--r--src/lib/krb5/krb/conv_creds.c10
2 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog
index 2d4ef8bef..9305d9014 100644
--- a/src/lib/krb5/krb/ChangeLog
+++ b/src/lib/krb5/krb/ChangeLog
@@ -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.
diff --git a/src/lib/krb5/krb/conv_creds.c b/src/lib/krb5/krb/conv_creds.c
index 6d4c109f1..d61b0a3b5 100644
--- a/src/lib/krb5/krb/conv_creds.c
+++ b/src/lib/krb5/krb/conv_creds.c
@@ -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 ()
{
}