jac@petsd.UUCP (Jim Clausing) (01/10/89)
Last week I commented that I didn't think the BSD4_1 code had ever been tested (it turns out that BSD4_1 is as close as I come to this version of Unix), the reason I believe this is because there were syntax errors in the 4.1 code. Below is my patch to correct that. All-in-all, I am pretty pleased with it now that I have it up and running (though I am using Pnews, not postmail to post this, maybe next time). -------------------------------cut here---------------------------------- RCS file: RCS/date.c,v retrieving revision 2.1 diff -c -r2.1 date.c *** /tmp/,RCSt1006016 Mon Jan 9 14:08:26 1989 --- date.c Fri Jan 6 17:02:27 1989 *************** *** 104,110 # ifdef BSD4_1 struct timeb loc_time; ! junk = time(long *) 0); ftime(&loc_time); # else struct timeval time_val; --- 109,115 ----- # ifdef BSD4_1 struct timeb loc_time; ! junk = time((long *) 0); ftime(&loc_time); # else struct timeval time_val; *************** *** 130,136 the_time->tm_sec % 61, #ifdef BSD # ifdef BSD4_1 ! timezone(time_zone.timezone, the_time->tm_isdst)); # else timezone(time_zone.tz_minuteswest, time_zone.tz_dsttime)); # endif --- 135,141 ----- the_time->tm_sec % 61, #ifdef BSD # ifdef BSD4_1 ! timezone(loc_time.timezone, the_time->tm_isdst)); # else timezone(time_zone.tz_minuteswest, time_zone.tz_dsttime)); # endif -- Jim Clausing CI$: 74726, 2015 Parallel Processing Tools Grp. GEnie: J.CLAUSING Concurrent Computer Corp. Pseudo-domain: jac@petsd.ccur.com Tinton Falls, NJ 07724 UUCP: {rutgers, princeton}!petsd!jac