From d757d388355717227149a38b507407ae320a0ad2 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 24 Mar 1995 04:15:15 +0000 Subject: [PATCH] realm_dom.c (krb5_get_realm_domain): Don't indent preprocessor directives. (Not portable). hst_realm.c (krb5_get_host_realm): Don't indent preprocessor directives. Removed excess close paren introduced by Keith. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5213 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 9 +++++++++ src/lib/krb5/os/hst_realm.c | 11 ++++------- src/lib/krb5/os/realm_dom.c | 8 ++++---- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index d8363b65a..232701702 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,12 @@ +Thu Mar 23 23:11:36 1995 Theodore Y. Ts'o + + * realm_dom.c (krb5_get_realm_domain): Don't indent preprocessor + directives. (Not portable). + + * hst_realm.c (krb5_get_host_realm): Don't indent preprocessor + directives. Removed excess close paren introduced by + Keith. + Wed Mar 22 18:59:47 1995 Keith Vetter (keithv@fusion.com) * hst_realm.c, realm_dom.c: windows DLL can't use fscanf so had diff --git a/src/lib/krb5/os/hst_realm.c b/src/lib/krb5/os/hst_realm.c index b05f013c3..e43655f62 100644 --- a/src/lib/krb5/os/hst_realm.c +++ b/src/lib/krb5/os/hst_realm.c @@ -186,12 +186,12 @@ krb5_get_host_realm(context, host, realmsp) (void) sprintf(scanstring, "%%%ds %%%ds", sizeof(trans_host)-1,sizeof(trans_realm)-1); while (1) { - #ifdef _WINDOWS +#ifdef _WINDOWS scanval = read_2str (trans_file, trans_host, sizeof(trans_host)-1, trans_realm, sizeof(trans_realm)-1); - #else - scanval = fscanf(trans_file, scanstring, trans_host, trans_realm)); - #endif +#else + scanval = fscanf(trans_file, scanstring, trans_host, trans_realm); +#endif if (scanval != 2) { if (scanval == EOF) { fclose(trans_file); @@ -230,6 +230,3 @@ krb5_get_host_realm(context, host, realmsp) *realmsp = retrealms; return 0; } - - - diff --git a/src/lib/krb5/os/realm_dom.c b/src/lib/krb5/os/realm_dom.c index be25e8d02..27907ac20 100644 --- a/src/lib/krb5/os/realm_dom.c +++ b/src/lib/krb5/os/realm_dom.c @@ -132,12 +132,12 @@ krb5_get_realm_domain(context, realm, domain) (void) sprintf(scanstring, "%%%ds %%%ds", sizeof(trans_host)-1,sizeof(trans_realm)-1); while (1) { - #ifdef _WINDOWS +#ifdef _WINDOWS scanval = read_2str (trans_file, trans_host, sizeof(trans_host)-1, trans_realm, sizeof(trans_realm)-1); - #else - scanval = fscanf(trans_file, scanstring, trans_host, trans_realm)); - #endif +#else + scanval = fscanf(trans_file, scanstring, trans_host, trans_realm); +#endif if (scanval != 2) { if (scanval == EOF) { fclose(trans_file); -- 2.26.2