From: Ken Raeburn Date: Sat, 24 Apr 2004 22:27:47 +0000 (+0000) Subject: * conv_creds.c (krb524_init_ets, krb524_convert_creds_kdc): Add forward declarations... X-Git-Tag: krb5-1.4-beta1~474 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3c51a8b0615193d36cff2de1af7c70d982dfaf66;p=krb5.git * conv_creds.c (krb524_init_ets, krb524_convert_creds_kdc): Add forward declarations to silence gcc warnings git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16271 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 + * 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 () { }