]> andersk Git - openssh.git/commitdiff
[auth.c] declare today at top of allowed_user() to keep older compilers happy.
authortim <tim>
Thu, 9 Jan 2003 04:04:27 +0000 (04:04 +0000)
committertim <tim>
Thu, 9 Jan 2003 04:04:27 +0000 (04:04 +0000)
ChangeLog
auth.c

index cd743ced02962b58c176eab57fdaeab28f5c97ea..155da0ef1ac89fc0de362c3798b8c70ec41490d1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,7 +16,8 @@
  - (djm) Update README to reflect AIX's status as a well supported platform.
    From dtucker@zip.com.au
  - (tim) [Makefile.in configure.ac] replace fixpath with sed script. Patch
-   by Mo DeJong.
+ - (tim) [auth.c] declare today at top of allowed_user() to keep
+   older compilers happy.
 
 20030107
  - (djm) Bug #401: Work around Linux breakage with IPv6 mapped addresses. 
diff --git a/auth.c b/auth.c
index 48586cc5d693e038297d508019daaa060e40a13a..c6e5a17321602137d5fa25a1ba039d703168b8a6 100644 (file)
--- a/auth.c
+++ b/auth.c
@@ -80,6 +80,9 @@ allowed_user(struct passwd * pw)
 #endif /* WITH_AIXAUTHENTICATE */
 #if defined(HAVE_SHADOW_H) && !defined(DISABLE_SHADOW)
        struct spwd *spw;
+#if !defined(USE_PAM) && defined(HAS_SHADOW_EXPIRE)
+       time_t today;
+#endif
 #endif
 
        /* Shouldn't be called if pw is NULL, but better safe than sorry... */
@@ -106,7 +109,7 @@ allowed_user(struct passwd * pw)
 #if !defined(USE_PAM) && defined(HAVE_SHADOW_H) && \
     !defined(DISABLE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
 #define        DAY             (24L * 60 * 60) /* 1 day in seconds */
-       time_t today = time(NULL) / DAY;
+       today = time(NULL) / DAY;
        debug3("allowed_user: today %d sp_expire %d sp_lstchg %d"
            " sp_max %d", (int)today, (int)spw->sp_expire,
            (int)spw->sp_lstchg, (int)spw->sp_max);
This page took 0.323693 seconds and 5 git commands to generate.