From 96610ac6dbba9c229febc92d2270398ac477ca19 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Tue, 12 Mar 1996 10:16:23 +0000 Subject: [PATCH] use PROTOTYPE and K&R style definitions, per krb5 style git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7605 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/k5mech.c | 12 ++++++------ src/lib/gssapi/mechglue/g_initialize.c | 8 +++++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/lib/gssapi/krb5/k5mech.c b/src/lib/gssapi/krb5/k5mech.c index ac3a2909a..7de0a1930 100644 --- a/src/lib/gssapi/krb5/k5mech.c +++ b/src/lib/gssapi/krb5/k5mech.c @@ -19,22 +19,22 @@ /* ident "@(#)krb5_gssd_extern_srvr.conf 1.10 95/08/01 SMI" */ OM_uint32 krb5_gss_internal_release_oid - (void *, /* context */ + PROTOTYPE((void *, /* context */ OM_uint32 *, /* minor_status */ gss_OID * /* OID */ - ); + )); extern OM_uint32 krb5_gss_get_context - (void** - ); + PROTOTYPE((void** + )); extern int krb5_pname_to_uid - (void *, /* context */ + PROTOTYPE((void *, /* context */ char *, /* principal name */ gss_OID, /* name_type */ gss_OID, /* mech_type */ uid_t * /* uid (OUT) */ - ); + )); /* * This is the declaration of the mechs_array table for Kerberos V5. diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c index cf75155c9..fc936f5c7 100644 --- a/src/lib/gssapi/mechglue/g_initialize.c +++ b/src/lib/gssapi/mechglue/g_initialize.c @@ -62,7 +62,9 @@ gss_mechanism *__gss_mechs_array = NULL; */ static OM_uint32 -add_mechanism (gss_mechanism mech, int replace) +add_mechanism (mech, replace) + gss_mechanism mech; + int replace; { gss_mechanism * temp_array; gss_OID_set mech_names; @@ -128,7 +130,7 @@ add_mechanism (gss_mechanism mech, int replace) return GSS_S_COMPLETE; } -void gss_initialize (void) +void gss_initialize () { gss_mechanism mech; @@ -175,7 +177,7 @@ void gss_initialize (void) * load, load them, and then load the mechanism defitions in * and add the mechanisms */ -static void solaris_initialize (void) +static void solaris_initialize () { char buffer[BUFSIZ], *filename, *symname, *endp; FILE *conffile; -- 2.26.2