localtime.c (2711) | localtime.c (2713) |
---|---|
1#ifndef lint 2#ifndef NOID 3static char elsieid[] = "@(#)localtime.c 7.19"; 4#endif /* !defined NOID */ 5#endif /* !defined lint */ 6 7/* 8** Leap second handling from Bradley White (bww@k.gp.cs.cmu.edu). --- 926 unchanged lines hidden (view full) --- 935 ** you'd replace the statement below with 936 ** t += ttisp->tt_gmtoff; 937 ** timesub(&t, 0L, sp, tmp); 938 */ 939 timesub(&t, ttisp->tt_gmtoff, sp, tmp); 940 tmp->tm_isdst = ttisp->tt_isdst; 941 tzname[tmp->tm_isdst] = (char *) &sp->chars[ttisp->tt_abbrind]; 942#ifdef TM_ZONE | 1#ifndef lint 2#ifndef NOID 3static char elsieid[] = "@(#)localtime.c 7.19"; 4#endif /* !defined NOID */ 5#endif /* !defined lint */ 6 7/* 8** Leap second handling from Bradley White (bww@k.gp.cs.cmu.edu). --- 926 unchanged lines hidden (view full) --- 935 ** you'd replace the statement below with 936 ** t += ttisp->tt_gmtoff; 937 ** timesub(&t, 0L, sp, tmp); 938 */ 939 timesub(&t, ttisp->tt_gmtoff, sp, tmp); 940 tmp->tm_isdst = ttisp->tt_isdst; 941 tzname[tmp->tm_isdst] = (char *) &sp->chars[ttisp->tt_abbrind]; 942#ifdef TM_ZONE |
943 tmp->TM_ZONE = &sp->chars[ttisp->tt_abbrind]; | 943 tmp->TM_ZONE = (char *)&sp->chars[ttisp->tt_abbrind]; |
944#endif /* defined TM_ZONE */ 945} 946 947struct tm * 948localtime(timep) 949const time_t * const timep; 950{ 951 static struct tm tm; --- 579 unchanged lines hidden --- | 944#endif /* defined TM_ZONE */ 945} 946 947struct tm * 948localtime(timep) 949const time_t * const timep; 950{ 951 static struct tm tm; --- 579 unchanged lines hidden --- |