From 11c7543c768d467a7e06da88b08e36acdd8cd3fa Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 20 Sep 2008 20:03:04 +0000 Subject: [PATCH] * src/login.c: Explicitly tag the end of the #ifdef RLOGIN sections. --- ChangeLog | 2 ++ src/login.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 97a5e4ff..c590ac64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ conditional). * src/login.c: Check that no username is specified with -r. * src/login.c: Make sure a username is specified with -f. + * src/login.c: Explicitly tag the end of the #ifdef RLOGIN + sections. 2008-09-20 Nicolas François diff --git a/src/login.c b/src/login.c index 5d31df0c..4a9cab01 100644 --- a/src/login.c +++ b/src/login.c @@ -100,9 +100,9 @@ static bool fflg = false; #ifdef RLOGIN static bool rflg = false; -#else +#else /* RLOGIN */ #define rflg false -#endif +#endif /* !RLOGIN */ static bool hflg = false; static bool preauth_flag = false; @@ -157,7 +157,7 @@ static void usage (void) fprintf (stderr, _(" %s [-p] [-h host] [-f name]\n"), Prog); #ifdef RLOGIN fprintf (stderr, _(" %s [-p] -r host\n"), Prog); -#endif +#endif /* RLOGIN */ exit (1); } @@ -298,7 +298,7 @@ static void process_flags (int argc, char *const *argv) hostname = optarg; reason = PW_RLOGIN; break; -#endif +#endif /* RLOGIN */ case 'p': pflg = true; break; @@ -315,7 +315,7 @@ static void process_flags (int argc, char *const *argv) if (rflg && (hflg || fflg)) { usage (); } -#endif +#endif /* RLOGIN */ /* * Allow authentication bypass only if real UID is zero. @@ -428,7 +428,7 @@ int main (int argc, char **argv) #ifdef RLOGIN char term[128] = ""; -#endif +#endif /* RLOGIN */ #if defined(HAVE_STRFTIME) && !defined(USE_PAM) char ptime[80]; #endif @@ -545,7 +545,7 @@ int main (int argc, char **argv) username = NULL; } } -#endif +#endif /* RLOGIN */ OPENLOG ("login"); @@ -584,7 +584,7 @@ int main (int argc, char **argv) if (term[0] != '\0') { addenv ("TERM", term); } else -#endif +#endif /* RLOGIN */ { /* preserve TERM from getty */ if (!pflg) {