ANSIfy the remaining K&R functions in lib/gssapi/generic
authorGreg Hudson <ghudson@mit.edu>
Mon, 13 Jun 2011 21:44:51 +0000 (21:44 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 13 Jun 2011 21:44:51 +0000 (21:44 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24968 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/generic/disp_com_err_status.c
src/lib/gssapi/generic/disp_major_status.c

index 4c410cc468ff82cccbde2d8cc424d7c509733db5..bc416107e74e3c0ea08aaac0e38cc7d5cc30684f 100644 (file)
@@ -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;
index e4ff722c9c91f8976f06920156b037f90d29b2c1..848af8fa5526d0948e1b696a21e0e734df55c087 100644 (file)
@@ -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;