get rid of a warning by some code restructuring (is this really worth

it?)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4197 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-12-14 23:53:05 +00:00
parent a3245b4d39
commit 13e01878ae
2 changed files with 20 additions and 12 deletions

View File

@@ -94,8 +94,6 @@ store_ticket(KTEXT cip)
int kerror;
time_t kdc_time;
ptr = (char *) cip->dat;
/* extract session key */
@@ -156,14 +154,18 @@ store_ticket(KTEXT cip)
#if 0
/* check KDC time stamp */
memmove(&kdc_time, ptr, sizeof(kdc_time));
if (swap_bytes) swap_u_long(kdc_time);
{
time_t kdc_time;
ptr += 4;
memmove(&kdc_time, ptr, sizeof(kdc_time));
if (swap_bytes) swap_u_long(kdc_time);
ptr += 4;
if (abs((int)(local_time - kdc_time)) > CLOCK_SKEW) {
return(RD_AP_TIME); /* XXX should probably be better
if (abs((int)(local_time - kdc_time)) > CLOCK_SKEW) {
return(RD_AP_TIME); /* XXX should probably be better
code */
}
}
#endif