Skip to content
Snippets Groups Projects
Commit 77f63e8f authored by rswindell's avatar rswindell
Browse files

No longer sets/checks time zone.

parent de58ac25
No related branches found
No related tags found
No related merge requests found
......@@ -72,16 +72,6 @@ void allocfail(uint size)
bail(1);
}
time_t checktime(void)
{
struct tm tm;
memset(&tm,0,sizeof(tm));
tm.tm_year=94;
tm.tm_mday=1;
return(mktime(&tm)^0x2D24BD00L);
}
int main(int argc, char **argv)
{
char **mopt,*p;
......@@ -184,14 +174,6 @@ if(i!=0) {
exit(1);
}
if(putenv("TZ=UTC0"))
printf("putenv() failed!\n");
tzset();
if((l=checktime())!=0) { /* Check binary time */
printf("Time problem (%08lx)\n",l);
exit(1); }
if((opt=(char **)MALLOC(sizeof(char *)*(MAX_OPTS+1)))==NULL)
allocfail(sizeof(char *)*(MAX_OPTS+1));
for(i=0;i<(MAX_OPTS+1);i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment