From 4b778bc6d6e8db0c1145da0aa618289ab1812d37 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 13 Jun 2011 21:44:51 +0000 Subject: [PATCH] ANSIfy the remaining K&R functions in lib/gssapi/generic git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24968 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/generic/disp_com_err_status.c | 6 ++-- src/lib/gssapi/generic/disp_major_status.c | 35 ++++++++------------ 2 files changed, 15 insertions(+), 26 deletions(-) diff --git a/src/lib/gssapi/generic/disp_com_err_status.c b/src/lib/gssapi/generic/disp_com_err_status.c index 4c410cc46..bc416107e 100644 --- a/src/lib/gssapi/generic/disp_com_err_status.c +++ b/src/lib/gssapi/generic/disp_com_err_status.c @@ -45,10 +45,8 @@ static const char * const no_error = "No error"; */ OM_uint32 -g_display_com_err_status(minor_status, status_value, status_string) - OM_uint32 *minor_status; - OM_uint32 status_value; - gss_buffer_t status_string; +g_display_com_err_status(OM_uint32 *minor_status, OM_uint32 status_value, + gss_buffer_t status_string) { status_string->length = 0; status_string->value = NULL; diff --git a/src/lib/gssapi/generic/disp_major_status.c b/src/lib/gssapi/generic/disp_major_status.c index e4ff722c9..848af8fa5 100644 --- a/src/lib/gssapi/generic/disp_major_status.c +++ b/src/lib/gssapi/generic/disp_major_status.c @@ -109,10 +109,7 @@ static const char * const unknown_error = N_("Unknown %s (field = %d)"); /**/ static int -display_unknown(kind, value, buffer) - const char *kind; - OM_uint32 value; - gss_buffer_t buffer; +display_unknown(const char *kind, OM_uint32 value, gss_buffer_t buffer) { char *str; @@ -127,10 +124,9 @@ display_unknown(kind, value, buffer) /* code should be set to the calling error field */ -static OM_uint32 display_calling(minor_status, code, status_string) - OM_uint32 *minor_status; - OM_uint32 code; - gss_buffer_t status_string; +static OM_uint32 +display_calling(OM_uint32 *minor_status, OM_uint32 code, + gss_buffer_t status_string) { const char *str; @@ -152,10 +148,9 @@ static OM_uint32 display_calling(minor_status, code, status_string) /* code should be set to the routine error field */ -static OM_uint32 display_routine(minor_status, code, status_string) - OM_uint32 *minor_status; - OM_uint32 code; - gss_buffer_t status_string; +static OM_uint32 +display_routine(OM_uint32 *minor_status, OM_uint32 code, + gss_buffer_t status_string) { const char *str; @@ -177,10 +172,9 @@ static OM_uint32 display_routine(minor_status, code, status_string) /* code should be set to the bit offset (log_2) of a supplementary info bit */ -static OM_uint32 display_bit(minor_status, code, status_string) - OM_uint32 *minor_status; - OM_uint32 code; - gss_buffer_t status_string; +static OM_uint32 +display_bit(OM_uint32 *minor_status, OM_uint32 code, + gss_buffer_t status_string) { const char *str; @@ -208,12 +202,9 @@ static OM_uint32 display_bit(minor_status, code, status_string) message_context > 2 : print supplementary info bit (message_context-2) */ -OM_uint32 g_display_major_status(minor_status, status_value, - message_context, status_string) - OM_uint32 *minor_status; - OM_uint32 status_value; - OM_uint32 *message_context; - gss_buffer_t status_string; +OM_uint32 +g_display_major_status(OM_uint32 *minor_status, OM_uint32 status_value, + OM_uint32 *message_context, gss_buffer_t status_string) { OM_uint32 ret, tmp; int bit; -- 2.26.2