svn rev #23103: trunk/src/lib/krb5/os/

ghudson@MIT.EDU ghudson at MIT.EDU
Fri Oct 30 23:17:27 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=23103
Commit By: ghudson
Log Message:
In lib/krb5/os, ensure that function definition headers have function
names at the beginnings of lines.



Changed Files:
U   trunk/src/lib/krb5/os/changepw.c
U   trunk/src/lib/krb5/os/dnsglue.c
U   trunk/src/lib/krb5/os/dnssrv.c
U   trunk/src/lib/krb5/os/localaddr.c
U   trunk/src/lib/krb5/os/locate_kdc.c
U   trunk/src/lib/krb5/os/prompter.c
U   trunk/src/lib/krb5/os/read_pwd.c
U   trunk/src/lib/krb5/os/sendto_kdc.c
U   trunk/src/lib/krb5/os/t_gifconf.c
U   trunk/src/lib/krb5/os/t_locate_kdc.c
U   trunk/src/lib/krb5/os/t_realm_iter.c
U   trunk/src/lib/krb5/os/t_std_conf.c
Modified: trunk/src/lib/krb5/os/changepw.c
===================================================================
--- trunk/src/lib/krb5/os/changepw.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/changepw.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -95,14 +95,17 @@
  */
 
 
-static void kpasswd_sendto_msg_cleanup (void* callback_context, krb5_data* message)
+static void
+kpasswd_sendto_msg_cleanup (void* callback_context, krb5_data* message)
 {
     struct sendto_callback_context *ctx = callback_context;
     krb5_free_data_contents(ctx->context, message);
 }
 
 
-static int kpasswd_sendto_msg_callback(struct conn_state *conn, void *callback_context, krb5_data* message)
+static int
+kpasswd_sendto_msg_callback(struct conn_state *conn, void *callback_context,
+                            krb5_data *message)
 {
     krb5_error_code                     code = 0;
     struct sockaddr_storage             local_addr;

Modified: trunk/src/lib/krb5/os/dnsglue.c
===================================================================
--- trunk/src/lib/krb5/os/dnsglue.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/dnsglue.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -199,9 +199,9 @@
 /*
  * krb5int_dns_expand - wrapper for dn_expand()
  */
-int krb5int_dns_expand(struct krb5int_dns_state *ds,
-                       const unsigned char *p,
-                       char *buf, int len)
+int
+krb5int_dns_expand(struct krb5int_dns_state *ds, const unsigned char *p,
+                   char *buf, int len)
 {
 
 #if HAVE_NS_NAME_UNCOMPRESS

Modified: trunk/src/lib/krb5/os/dnssrv.c
===================================================================
--- trunk/src/lib/krb5/os/dnssrv.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/dnssrv.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -37,7 +37,8 @@
  * Lookup a KDC via DNS SRV records
  */
 
-void krb5int_free_srv_dns_data (struct srv_dns_entry *p)
+void
+krb5int_free_srv_dns_data (struct srv_dns_entry *p)
 {
     struct srv_dns_entry *next;
     while (p) {

Modified: trunk/src/lib/krb5/os/localaddr.c
===================================================================
--- trunk/src/lib/krb5/os/localaddr.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/localaddr.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -156,7 +156,8 @@
 
 void printaddr (struct sockaddr *);
 
-void printaddr (struct sockaddr *sa)
+void
+printaddr(struct sockaddr *sa)
 /*@modifies fileSystem@*/
 {
     char buf[NI_MAXHOST];
@@ -195,7 +196,8 @@
 #include <ifaddrs.h>
 
 #ifdef DEBUG
-void printifaddr (struct ifaddrs *ifp)
+void
+printifaddr(struct ifaddrs *ifp)
 {
     printf ("%p={\n", ifp);
 /*  printf ("\tnext=%p\n", ifp->ifa_next); */

Modified: trunk/src/lib/krb5/os/locate_kdc.c
===================================================================
--- trunk/src/lib/krb5/os/locate_kdc.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/locate_kdc.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -138,7 +138,8 @@
 }
 #define free_list krb5int_free_addrlist
 
-static int translate_ai_error (int err)
+static int
+translate_ai_error (int err)
 {
     switch (err) {
     case 0:
@@ -182,7 +183,8 @@
 }
 
 #include <stdarg.h>
-static inline void Tprintf(const char *fmt, ...)
+static inline void
+Tprintf(const char *fmt, ...)
 {
 #ifdef TEST
     va_list ap;
@@ -202,8 +204,9 @@
 static inline void print_addrlist(const struct addrlist *a) { }
 #endif
 
-static int add_addrinfo_to_list (struct addrlist *lp, struct addrinfo *a,
-                                 void (*freefn)(void *), void *data)
+static int
+add_addrinfo_to_list(struct addrlist *lp, struct addrinfo *a,
+                     void (*freefn)(void *), void *data)
 {
     int err;
 
@@ -230,7 +233,8 @@
 
 #define add_host_to_list krb5int_add_host_to_list
 
-static void call_freeaddrinfo(void *data)
+static void
+call_freeaddrinfo(void *data)
 {
     /* Strict interpretation of the C standard says we can't assume
        that the ABI for f(void*) and f(struct foo *) will be

Modified: trunk/src/lib/krb5/os/prompter.c
===================================================================
--- trunk/src/lib/krb5/os/prompter.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/prompter.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -123,7 +123,8 @@
     return errcode;
 }
 
-static krb5_sigtype intrfunc(int sig)
+static krb5_sigtype
+intrfunc(int sig)
 {
     got_int = 1;
 }

Modified: trunk/src/lib/krb5/os/read_pwd.c
===================================================================
--- trunk/src/lib/krb5/os/read_pwd.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/read_pwd.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -92,7 +92,8 @@
     int  *pwd_size_return;
 } pwd_params;
 
-void center_dialog(HWND hwnd)
+void
+center_dialog(HWND hwnd)
 {
     int scrwidth, scrheight;
     int dlgwidth, dlgheight;

Modified: trunk/src/lib/krb5/os/sendto_kdc.c
===================================================================
--- trunk/src/lib/krb5/os/sendto_kdc.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/sendto_kdc.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -64,7 +64,8 @@
 int krb5int_debug_sendto_kdc = 0;
 #define debug krb5int_debug_sendto_kdc
 
-static void default_debug_handler (const void *data, size_t len)
+static void
+default_debug_handler (const void *data, size_t len)
 {
 #if 0
     static FILE *logfile;
@@ -83,11 +84,13 @@
 
 void (*krb5int_sendtokdc_debug_handler) (const void *, size_t) = default_debug_handler;
 
-static void put(const void *ptr, size_t len)
+static void
+put(const void *ptr, size_t len)
 {
     (*krb5int_sendtokdc_debug_handler)(ptr, len);
 }
-static void putstr(const char *str)
+static void
+putstr(const char *str)
 {
     put(str, strlen(str));
 }
@@ -500,7 +503,8 @@
 
 #include "cm.h"
 
-static int getcurtime (struct timeval *tvp)
+static int
+getcurtime (struct timeval *tvp)
 {
 #ifdef _WIN32
     struct _timeb tb;

Modified: trunk/src/lib/krb5/os/t_gifconf.c
===================================================================
--- trunk/src/lib/krb5/os/t_gifconf.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/t_gifconf.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -77,7 +77,9 @@
 
 #define INIT 0xc3
 
-int main (void) {
+int
+main(void)
+{
     char buffer[2048];
     int i, sock, t, olen = -9, omod = -9;
     struct ifconf ifc;

Modified: trunk/src/lib/krb5/os/t_locate_kdc.c
===================================================================
--- trunk/src/lib/krb5/os/t_locate_kdc.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/t_locate_kdc.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -21,13 +21,15 @@
 
 struct addrlist al;
 
-static void kfatal (krb5_error_code err)
+static void
+kfatal (krb5_error_code err)
 {
     com_err (prog, err, "- exiting");
     exit (1);
 }
 
-static const char *stypename (int stype)
+static const char *
+stypename (int stype)
 {
     static char buf[20];
     switch (stype) {
@@ -43,7 +45,8 @@
     }
 }
 
-static void print_addrs (void)
+static void
+print_addrs (void)
 {
     int i;
 
@@ -67,7 +70,8 @@
     }
 }
 
-int main (int argc, char *argv[])
+int
+main (int argc, char *argv[])
 {
     char *p, *realmname;
     krb5_data realm;

Modified: trunk/src/lib/krb5/os/t_realm_iter.c
===================================================================
--- trunk/src/lib/krb5/os/t_realm_iter.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/t_realm_iter.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -3,7 +3,8 @@
 
 #include <stdio.h>
 
-void test_realm_iterator(int ctx)
+void
+test_realm_iterator(int ctx)
 {
     krb5_error_code retval;
     char *realm;
@@ -26,7 +27,8 @@
     }
 }
 
-int main(int argc, char **argv)
+int
+main(int argc, char **argv)
 {
     krb5_context ctx;
     krb5_error_code retval;

Modified: trunk/src/lib/krb5/os/t_std_conf.c
===================================================================
--- trunk/src/lib/krb5/os/t_std_conf.c	2009-10-31 03:03:54 UTC (rev 23102)
+++ trunk/src/lib/krb5/os/t_std_conf.c	2009-10-31 03:17:27 UTC (rev 23103)
@@ -18,7 +18,8 @@
 
 #include "os-proto.h"
 
-static void test_get_default_realm(krb5_context ctx)
+static void
+test_get_default_realm(krb5_context ctx)
 {
     char    *realm;
     krb5_error_code retval;
@@ -32,7 +33,8 @@
     free(realm);
 }
 
-static void test_set_default_realm(krb5_context ctx, char *realm)
+static void
+test_set_default_realm(krb5_context ctx, char *realm)
 {
     krb5_error_code retval;
 
@@ -44,7 +46,8 @@
     printf("krb5_set_default_realm(%s)\n", realm);
 }
 
-static void test_get_default_ccname(krb5_context ctx)
+static void
+test_get_default_ccname(krb5_context ctx)
 {
     const char      *ccname;
 
@@ -55,7 +58,8 @@
         printf("krb5_cc_default_name() returned NULL\n");
 }
 
-static void test_set_default_ccname(krb5_context ctx, char *ccname)
+static void
+test_set_default_ccname(krb5_context ctx, char *ccname)
 {
     krb5_error_code retval;
 
@@ -67,7 +71,8 @@
     printf("krb5_set_default_ccname(%s)\n", ccname);
 }
 
-static void test_get_krbhst(krb5_context ctx, char *realm)
+static void
+test_get_krbhst(krb5_context ctx, char *realm)
 {
     char **hostlist, **cpp;
     krb5_data rlm;
@@ -97,7 +102,8 @@
     printf("\n");
 }
 
-static void test_locate_kdc(krb5_context ctx, char *realm)
+static void
+test_locate_kdc(krb5_context ctx, char *realm)
 {
     struct addrlist addrs;
     int     i;
@@ -148,7 +154,8 @@
     printf("\n");
 }
 
-static void test_get_host_realm(krb5_context ctx, char *host)
+static void
+test_get_host_realm(krb5_context ctx, char *host)
 {
     char **realms, **cpp;
     krb5_error_code retval;
@@ -176,7 +183,8 @@
     printf("\n");
 }
 
-static void test_get_realm_domain(krb5_context ctx, char *realm)
+static void
+test_get_realm_domain(krb5_context ctx, char *realm)
 {
     krb5_error_code retval;
     char    *domain;
@@ -190,14 +198,16 @@
     free(domain);
 }
 
-static void usage(char *progname)
+static void
+usage(char *progname)
 {
     fprintf(stderr, "%s: Usage: %s [-dc] [-k realm] [-r host] [-C ccname] [-D realm]\n",
             progname, progname);
     exit(1);
 }
 
-int main(int argc, char **argv)
+int
+main(int argc, char **argv)
 {
     int     c;
     krb5_context    ctx;




More information about the cvs-krb5 mailing list