* g_tkt_svc.c (CredIsExpired): Don't use a variable named "time"
authorKen Raeburn <raeburn@mit.edu>
Sat, 14 Apr 2001 03:27:43 +0000 (03:27 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 14 Apr 2001 03:27:43 +0000 (03:27 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13179 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb4/ChangeLog
src/lib/krb4/g_tkt_svc.c

index b9927351ecb632381dcd5548cc4fc1bee110d8e6..d91b33d52668b779e33c75918e9b0195ac0e7fa2 100644 (file)
@@ -1,3 +1,7 @@
+2001-04-13  Ken Raeburn  <raeburn@mit.edu>
+
+       * g_tkt_svc.c (CredIsExpired): Don't use a variable named "time".
+
 2001-04-13  Danilo Almeida  <dalmeida@mit.edu>
 
        * memcache.h: Don't use macro PROTOTYPE.
index 4bb43f8f02b5ead98b773f001ce8e13e67eeb025..cbe74a2f2270fb16ed59be1ad7812274ad4c7947 100644 (file)
@@ -71,17 +71,17 @@ static int
 CredIsExpired( cr )
      CREDENTIALS *cr;
 {
-       KRB4_32 time;
+    KRB4_32 now;
 
-       /* This routine is for use with clients only in order to determine if a credential
-          is still good
-          Note: twice CLOCK_SKEW was added to age of ticket so that we could 
-          be more sure that the ticket was good. 
-          FIXME:  I think this is a bug -- should use the same algorithm
-          everywhere to determine ticket expiration.   */
+    /* This routine is for use with clients only in order to determine
+       if a credential is still good.
+       Note: twice CLOCK_SKEW was added to age of ticket so that we could 
+       be more sure that the ticket was good. 
+       FIXME:  I think this is a bug -- should use the same algorithm
+       everywhere to determine ticket expiration.   */
 
-   time = TIME_GMT_UNIXSEC;    
-   return time + 2 * CLOCK_SKEW > krb_life_to_time(cr->issue_date,
+    now = TIME_GMT_UNIXSEC;    
+    return now + 2 * CLOCK_SKEW > krb_life_to_time(cr->issue_date,
                                                   cr->lifetime);
 }