From f3bbe2a9609479be6cee14e69ca369459f0fa4e1 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 30 Apr 1991 15:07:27 +0000 Subject: [PATCH] fix use of build_principal_va in build_principal git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2071 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/bld_princ.c | 52 ++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/lib/krb5/krb/bld_princ.c b/src/lib/krb5/krb/bld_princ.c index 879f07465..83ae9724f 100644 --- a/src/lib/krb5/krb/bld_princ.c +++ b/src/lib/krb5/krb/bld_princ.c @@ -16,38 +16,14 @@ static char rcsid_bld_princ_c [] = "$Id$"; #endif /* !lint & !SABER */ -#include -#include - #ifdef __STDC__ #include #else #include #endif -krb5_error_code -#ifdef __STDC__ -krb5_build_principal(krb5_principal *princ, int rlen, const char *realm, ...) -#else -krb5_build_principal(princ, rlen, realm, va_alist) -krb5_principal *princ; -int rlen; -const char *realm; -va_dcl -#endif -{ - va_list ap; - krb5_error_code retval; - -#ifdef __STDC__ - va_start(ap, realm); -#else - va_start(ap); -#endif - retval = krb5_build_principal_va(princ, realm, ap); - va_end(ap); - return retval; -} +#include +#include krb5_error_code krb5_build_principal_va(princ, rlen, realm, ap) @@ -115,3 +91,27 @@ va_list ap; *princ = princ_ret; return 0; } + +krb5_error_code +#ifdef __STDC__ +krb5_build_principal(krb5_principal *princ, int rlen, const char *realm, ...) +#else +krb5_build_principal(princ, rlen, realm, va_alist) +krb5_principal *princ; +int rlen; +const char *realm; +va_dcl +#endif +{ + va_list ap; + krb5_error_code retval; + +#ifdef __STDC__ + va_start(ap, realm); +#else + va_start(ap); +#endif + retval = krb5_build_principal_va(princ, rlen, realm, ap); + va_end(ap); + return retval; +} -- 2.26.2