svn rev #23126: trunk/src/ kadmin/cli/ kadmin/server/ lib/kadm5/ lib/kadm5/clnt/ ...

tlyu@MIT.EDU tlyu at MIT.EDU
Tue Nov 3 23:28:17 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=23126
Commit By: tlyu
Log Message:
Reindent and manually restore some BSD-style files that were
previously incorrectly marked as krb5-style.


Changed Files:
U   trunk/src/kadmin/cli/strftime.c
U   trunk/src/kadmin/server/ipropd_svc.c
U   trunk/src/kadmin/server/kadm_rpc_svc.c
U   trunk/src/lib/kadm5/admin_xdr.h
U   trunk/src/lib/kadm5/clnt/client_rpc.c
U   trunk/src/lib/kadm5/kadm_rpc.h
U   trunk/src/lib/kadm5/kadm_rpc_xdr.c
U   trunk/src/lib/kadm5/srv/adb_xdr.c
U   trunk/src/lib/krb5/krb/strftime.c
U   trunk/src/lib/krb5/krb/strptime.c
Modified: trunk/src/kadmin/cli/strftime.c
===================================================================
--- trunk/src/kadmin/cli/strftime.c	2009-11-04 00:21:35 UTC (rev 23125)
+++ trunk/src/kadmin/cli/strftime.c	2009-11-04 04:28:17 UTC (rev 23126)
@@ -1,3 +1,4 @@
+/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
 /*	$NetBSD: strftime.c,v 1.8 1999/02/07 17:33:30 augustss Exp $	*/
 
 /*

Modified: trunk/src/kadmin/server/ipropd_svc.c
===================================================================
--- trunk/src/kadmin/server/ipropd_svc.c	2009-11-04 00:21:35 UTC (rev 23125)
+++ trunk/src/kadmin/server/ipropd_svc.c	2009-11-04 04:28:17 UTC (rev 23126)
@@ -1,3 +1,4 @@
+/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
 /*
  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.

Modified: trunk/src/kadmin/server/kadm_rpc_svc.c
===================================================================
--- trunk/src/kadmin/server/kadm_rpc_svc.c	2009-11-04 00:21:35 UTC (rev 23125)
+++ trunk/src/kadmin/server/kadm_rpc_svc.c	2009-11-04 04:28:17 UTC (rev 23126)
@@ -1,3 +1,4 @@
+/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
 /*
  * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
  *
@@ -36,7 +37,7 @@
  *	rqstp		    (input) rpc request structure
  *	transp		    (input) rpc transport structure
  *	(input/output)
- * 	<return value>
+ *	<return value>
  *
  * Requires:
  * Effects:

Modified: trunk/src/lib/kadm5/admin_xdr.h
===================================================================
--- trunk/src/lib/kadm5/admin_xdr.h	2009-11-04 00:21:35 UTC (rev 23125)
+++ trunk/src/lib/kadm5/admin_xdr.h	2009-11-04 04:28:17 UTC (rev 23126)
@@ -1,3 +1,4 @@
+/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
 /*
  * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
  *

Modified: trunk/src/lib/kadm5/clnt/client_rpc.c
===================================================================
--- trunk/src/lib/kadm5/clnt/client_rpc.c	2009-11-04 00:21:35 UTC (rev 23125)
+++ trunk/src/lib/kadm5/clnt/client_rpc.c	2009-11-04 04:28:17 UTC (rev 23126)
@@ -1,4 +1,4 @@
-/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
 #include <gssrpc/rpc.h>
 #include <kadm5/kadm_rpc.h>
 #include <krb5.h>
@@ -15,314 +15,314 @@
 generic_ret *
 create_principal_2(cprinc_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, CREATE_PRINCIPAL,
-                  (xdrproc_t) xdr_cprinc_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, CREATE_PRINCIPAL,
+		      (xdrproc_t) xdr_cprinc_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 create_principal3_2(cprinc3_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, CREATE_PRINCIPAL3,
-                  (xdrproc_t) xdr_cprinc3_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, CREATE_PRINCIPAL3,
+		      (xdrproc_t) xdr_cprinc3_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 delete_principal_2(dprinc_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, DELETE_PRINCIPAL,
-                  (xdrproc_t) xdr_dprinc_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, DELETE_PRINCIPAL,
+		      (xdrproc_t) xdr_dprinc_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 modify_principal_2(mprinc_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, MODIFY_PRINCIPAL,
-                  (xdrproc_t) xdr_mprinc_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, MODIFY_PRINCIPAL,
+		      (xdrproc_t) xdr_mprinc_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 rename_principal_2(rprinc_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, RENAME_PRINCIPAL,
-                  (xdrproc_t) xdr_rprinc_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, RENAME_PRINCIPAL,
+		      (xdrproc_t) xdr_rprinc_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 gprinc_ret *
 get_principal_2(gprinc_arg *argp, CLIENT *clnt)
 {
-    static gprinc_ret clnt_res;
+	static gprinc_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, GET_PRINCIPAL,
-                  (xdrproc_t) xdr_gprinc_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_gprinc_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, GET_PRINCIPAL,
+		      (xdrproc_t) xdr_gprinc_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_gprinc_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 gprincs_ret *
 get_princs_2(gprincs_arg *argp, CLIENT *clnt)
 {
-    static gprincs_ret clnt_res;
+	static gprincs_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, GET_PRINCS,
-                  (xdrproc_t) xdr_gprincs_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_gprincs_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, GET_PRINCS,
+		      (xdrproc_t) xdr_gprincs_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_gprincs_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+	     return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 chpass_principal_2(chpass_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, CHPASS_PRINCIPAL,
-                  (xdrproc_t) xdr_chpass_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, CHPASS_PRINCIPAL,
+		      (xdrproc_t) xdr_chpass_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 chpass_principal3_2(chpass3_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, CHPASS_PRINCIPAL3,
-                  (xdrproc_t) xdr_chpass3_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, CHPASS_PRINCIPAL3,
+		      (xdrproc_t) xdr_chpass3_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 setv4key_principal_2(setv4key_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, SETV4KEY_PRINCIPAL,
-                  (xdrproc_t) xdr_setv4key_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, SETV4KEY_PRINCIPAL,
+		      (xdrproc_t) xdr_setv4key_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 setkey_principal_2(setkey_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, SETKEY_PRINCIPAL,
-                  (xdrproc_t) xdr_setkey_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, SETKEY_PRINCIPAL,
+		      (xdrproc_t) xdr_setkey_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 setkey_principal3_2(setkey3_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, SETKEY_PRINCIPAL3,
-                  (xdrproc_t) xdr_setkey3_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, SETKEY_PRINCIPAL3,
+		      (xdrproc_t) xdr_setkey3_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 chrand_ret *
 chrand_principal_2(chrand_arg *argp, CLIENT *clnt)
 {
-    static chrand_ret clnt_res;
+	static chrand_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, CHRAND_PRINCIPAL,
-                  (xdrproc_t) xdr_chrand_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_chrand_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, CHRAND_PRINCIPAL,
+		      (xdrproc_t) xdr_chrand_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_chrand_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 chrand_ret *
 chrand_principal3_2(chrand3_arg *argp, CLIENT *clnt)
 {
-    static chrand_ret clnt_res;
+	static chrand_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, CHRAND_PRINCIPAL3,
-                  (xdrproc_t) xdr_chrand3_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_chrand_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, CHRAND_PRINCIPAL3,
+		      (xdrproc_t) xdr_chrand3_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_chrand_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 create_policy_2(cpol_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, CREATE_POLICY,
-                  (xdrproc_t) xdr_cpol_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, CREATE_POLICY,
+		      (xdrproc_t) xdr_cpol_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 delete_policy_2(dpol_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, DELETE_POLICY,
-                  (xdrproc_t) xdr_dpol_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, DELETE_POLICY,
+		      (xdrproc_t) xdr_dpol_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 generic_ret *
 modify_policy_2(mpol_arg *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+	static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, MODIFY_POLICY,
-                  (xdrproc_t) xdr_mpol_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, MODIFY_POLICY,
+		      (xdrproc_t) xdr_mpol_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 gpol_ret *
 get_policy_2(gpol_arg *argp, CLIENT *clnt)
 {
-    static gpol_ret clnt_res;
+	static gpol_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, GET_POLICY,
-                  (xdrproc_t) xdr_gpol_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_gpol_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, GET_POLICY,
+		      (xdrproc_t) xdr_gpol_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_gpol_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+		return (NULL);
+	}
+	return (&clnt_res);
 }
 
 gpols_ret *
 get_pols_2(gpols_arg *argp, CLIENT *clnt)
 {
-    static gpols_ret clnt_res;
+	static gpols_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, GET_POLS,
-                  (xdrproc_t) xdr_gpols_arg, (caddr_t) argp,
-                  (xdrproc_t) xdr_gpols_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+	memset(&clnt_res, 0, sizeof(clnt_res));
+	if (clnt_call(clnt, GET_POLS,
+		      (xdrproc_t) xdr_gpols_arg, (caddr_t) argp,
+		      (xdrproc_t) xdr_gpols_ret, (caddr_t) &clnt_res,
+		      TIMEOUT) != RPC_SUCCESS) {
+	     return (NULL);
+	}
+	return (&clnt_res);
 }
 
 getprivs_ret *
 get_privs_2(void *argp, CLIENT *clnt)
 {
-    static getprivs_ret clnt_res;
+     static getprivs_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, GET_PRIVS,
-                  (xdrproc_t) xdr_u_int32, (caddr_t) argp,
-                  (xdrproc_t) xdr_getprivs_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+     memset(&clnt_res, 0, sizeof(clnt_res));
+     if (clnt_call(clnt, GET_PRIVS,
+		   (xdrproc_t) xdr_u_int32, (caddr_t) argp,
+		   (xdrproc_t) xdr_getprivs_ret, (caddr_t) &clnt_res,
+		   TIMEOUT) != RPC_SUCCESS) {
+	  return (NULL);
+     }
+     return (&clnt_res);
 }
 
 generic_ret *
 init_2(void *argp, CLIENT *clnt)
 {
-    static generic_ret clnt_res;
+     static generic_ret clnt_res;
 
-    memset(&clnt_res, 0, sizeof(clnt_res));
-    if (clnt_call(clnt, INIT,
-                  (xdrproc_t) xdr_u_int32, (caddr_t) argp,
-                  (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
-                  TIMEOUT) != RPC_SUCCESS) {
-        return (NULL);
-    }
-    return (&clnt_res);
+     memset(&clnt_res, 0, sizeof(clnt_res));
+     if (clnt_call(clnt, INIT,
+		   (xdrproc_t) xdr_u_int32, (caddr_t) argp,
+		   (xdrproc_t) xdr_generic_ret, (caddr_t) &clnt_res,
+		   TIMEOUT) != RPC_SUCCESS) {
+	  return (NULL);
+     }
+     return (&clnt_res);
 }

Modified: trunk/src/lib/kadm5/kadm_rpc.h
===================================================================
--- trunk/src/lib/kadm5/kadm_rpc.h	2009-11-04 00:21:35 UTC (rev 23125)
+++ trunk/src/lib/kadm5/kadm_rpc.h	2009-11-04 04:28:17 UTC (rev 23126)
@@ -1,3 +1,4 @@
+/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
 #ifndef __KADM_RPC_H__
 #define __KADM_RPC_H__
 
@@ -51,13 +52,13 @@
 typedef struct rprinc_arg rprinc_arg;
 
 struct gprincs_arg {
-        krb5_ui_4 api_version;
+	krb5_ui_4 api_version;
 	char *exp;
 };
 typedef struct gprincs_arg gprincs_arg;
 
 struct gprincs_ret {
-        krb5_ui_4 api_version;
+	krb5_ui_4 api_version;
 	kadm5_ret_t code;
 	char **princs;
 	int count;
@@ -84,15 +85,15 @@
 struct setv4key_arg {
 	krb5_ui_4 api_version;
 	krb5_principal princ;
-        krb5_keyblock *keyblock;
+	krb5_keyblock *keyblock;
 };
 typedef struct setv4key_arg setv4key_arg;
 
 struct setkey_arg {
 	krb5_ui_4 api_version;
 	krb5_principal princ;
-        krb5_keyblock *keyblocks;
-        int n_keys;
+	krb5_keyblock *keyblocks;
+	int n_keys;
 };
 typedef struct setkey_arg setkey_arg;
 
@@ -102,8 +103,8 @@
 	krb5_boolean keepold;
 	int n_ks_tuple;
 	krb5_key_salt_tuple *ks_tuple;
-        krb5_keyblock *keyblocks;
-        int n_keys;
+	krb5_keyblock *keyblocks;
+	int n_keys;
 };
 typedef struct setkey3_arg setkey3_arg;
 
@@ -179,13 +180,13 @@
 typedef struct gpol_ret gpol_ret;
 
 struct gpols_arg {
-        krb5_ui_4 api_version;
+	krb5_ui_4 api_version;
 	char *exp;
 };
 typedef struct gpols_arg gpols_arg;
 
 struct gpols_ret {
-        krb5_ui_4 api_version;
+	krb5_ui_4 api_version;
 	kadm5_ret_t code;
 	char **pols;
 	int count;

Modified: trunk/src/lib/kadm5/kadm_rpc_xdr.c
===================================================================
--- trunk/src/lib/kadm5/kadm_rpc_xdr.c	2009-11-04 00:21:35 UTC (rev 23125)
+++ trunk/src/lib/kadm5/kadm_rpc_xdr.c	2009-11-04 04:28:17 UTC (rev 23126)
@@ -1,3 +1,4 @@
+/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
 /*
  * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
  */
@@ -700,7 +701,7 @@
 	if (!xdr_array(xdrs, (caddr_t *) &objp->keyblock,
 		       &n_keys, ~0,
 		       sizeof(krb5_keyblock), xdr_krb5_keyblock)) {
-	        return (FALSE);
+		return (FALSE);
 	}
 	return (TRUE);
 }
@@ -717,7 +718,7 @@
 	if (!xdr_array(xdrs, (caddr_t *) &objp->keyblocks,
 		       (unsigned int *) &objp->n_keys, ~0,
 		       sizeof(krb5_keyblock), xdr_krb5_keyblock)) {
-	        return (FALSE);
+		return (FALSE);
 	}
 	return (TRUE);
 }

Modified: trunk/src/lib/kadm5/srv/adb_xdr.c
===================================================================
--- trunk/src/lib/kadm5/srv/adb_xdr.c	2009-11-04 00:21:35 UTC (rev 23125)
+++ trunk/src/lib/kadm5/srv/adb_xdr.c	2009-11-04 04:28:17 UTC (rev 23126)
@@ -1,4 +1,4 @@
-/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
+/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
 /*
  * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
  *
@@ -12,7 +12,7 @@
 #include <sys/types.h>
 #include <krb5.h>
 #include <gssrpc/rpc.h>
-#include        "server_internal.h"
+#include	"server_internal.h"
 #include "admin_xdr.h"
 #ifdef HAVE_MEMORY_H
 #include <memory.h>
@@ -24,27 +24,27 @@
     unsigned int tmp;
 
     if (!xdr_krb5_int16(xdrs, &objp->key_data_ver))
-        return(FALSE);
+	return(FALSE);
     if (!xdr_krb5_int16(xdrs, &objp->key_data_kvno))
-        return(FALSE);
+	return(FALSE);
     if (!xdr_krb5_int16(xdrs, &objp->key_data_type[0]))
-        return(FALSE);
+	return(FALSE);
     if (!xdr_krb5_int16(xdrs, &objp->key_data_type[1]))
-        return(FALSE);
+	return(FALSE);
     if (!xdr_krb5_ui_2(xdrs, &objp->key_data_length[0]))
-        return(FALSE);
+	return(FALSE);
     if (!xdr_krb5_ui_2(xdrs, &objp->key_data_length[1]))
-        return(FALSE);
+	return(FALSE);
 
     tmp = (unsigned int) objp->key_data_length[0];
     if (!xdr_bytes(xdrs, (char **) &objp->key_data_contents[0],
-                   &tmp, ~0))
-        return FALSE;
+		   &tmp, ~0))
+	return FALSE;
 
     tmp = (unsigned int) objp->key_data_length[1];
     if (!xdr_bytes(xdrs, (char **) &objp->key_data_contents[1],
-                   &tmp, ~0))
-        return FALSE;
+		   &tmp, ~0))
+	return FALSE;
 
     /* don't need to copy tmp out, since key_data_length will be set
        by the above encoding. */
@@ -56,10 +56,10 @@
 xdr_osa_pw_hist_ent(XDR *xdrs, osa_pw_hist_ent *objp)
 {
     if (!xdr_array(xdrs, (caddr_t *) &objp->key_data,
-                   (u_int *) &objp->n_key_data, ~0,
-                   sizeof(krb5_key_data),
-                   xdr_krb5_key_data))
-        return (FALSE);
+		   (u_int *) &objp->n_key_data, ~0,
+		   sizeof(krb5_key_data),
+		   xdr_krb5_key_data))
+	return (FALSE);
     return (TRUE);
 }
 
@@ -68,33 +68,33 @@
 {
     switch (xdrs->x_op) {
     case XDR_ENCODE:
-        objp->version = OSA_ADB_PRINC_VERSION_1;
-        /* fall through */
+	 objp->version = OSA_ADB_PRINC_VERSION_1;
+	 /* fall through */
     case XDR_FREE:
-        if (!xdr_int(xdrs, &objp->version))
-            return FALSE;
-        break;
+	 if (!xdr_int(xdrs, &objp->version))
+	      return FALSE;
+	 break;
     case XDR_DECODE:
-        if (!xdr_int(xdrs, &objp->version))
-            return FALSE;
-        if (objp->version != OSA_ADB_PRINC_VERSION_1)
-            return FALSE;
-        break;
+	 if (!xdr_int(xdrs, &objp->version))
+	      return FALSE;
+	 if (objp->version != OSA_ADB_PRINC_VERSION_1)
+	      return FALSE;
+	 break;
     }
 
     if (!xdr_nullstring(xdrs, &objp->policy))
-        return (FALSE);
+	return (FALSE);
     if (!xdr_long(xdrs, &objp->aux_attributes))
-        return (FALSE);
+	return (FALSE);
     if (!xdr_u_int(xdrs, &objp->old_key_next))
-        return (FALSE);
+	return (FALSE);
     if (!xdr_krb5_kvno(xdrs, &objp->admin_history_kvno))
-        return (FALSE);
+	return (FALSE);
     if (!xdr_array(xdrs, (caddr_t *) &objp->old_keys,
-                   (unsigned int *) &objp->old_key_len, ~0,
-                   sizeof(osa_pw_hist_ent),
-                   xdr_osa_pw_hist_ent))
-        return (FALSE);
+		   (unsigned int *) &objp->old_key_len, ~0,
+		   sizeof(osa_pw_hist_ent),
+		   xdr_osa_pw_hist_ent))
+	return (FALSE);
     return (TRUE);
 }
 

Modified: trunk/src/lib/krb5/krb/strftime.c
===================================================================
--- trunk/src/lib/krb5/krb/strftime.c	2009-11-04 00:21:35 UTC (rev 23125)
+++ trunk/src/lib/krb5/krb/strftime.c	2009-11-04 04:28:17 UTC (rev 23126)
@@ -1,3 +1,4 @@
+/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
 /*	$NetBSD: strftime.c,v 1.8 1999/02/07 17:33:30 augustss Exp $	*/
 
 /*

Modified: trunk/src/lib/krb5/krb/strptime.c
===================================================================
--- trunk/src/lib/krb5/krb/strptime.c	2009-11-04 00:21:35 UTC (rev 23125)
+++ trunk/src/lib/krb5/krb/strptime.c	2009-11-04 04:28:17 UTC (rev 23126)
@@ -1,3 +1,4 @@
+/* -*- mode: c; c-file-style: "bsd"; indent-tabs-mode: t -*- */
 /*	$NetBSD: strptime.c,v 1.18 1999/04/29 02:58:30 tv Exp $	*/
 
 /*-




More information about the cvs-krb5 mailing list