Replaced unused timezone parameter of gettimeofday() by NULL

This commit is contained in:
2016-03-10 20:05:41 +00:00
parent 07259e6051
commit f7b10f6eb8
4 changed files with 8 additions and 10 deletions

View File

@ -333,10 +333,9 @@ int Xorriso_dialog_input(struct XorrisO *xorriso, char line[], int linesize,
#endif /* Xorriso_with_line_editoR */
double tdiff;
struct timeval tv;
struct timezone tz;
struct Xorriso_lsT *next_lst;
gettimeofday(&tv,&tz);
gettimeofday(&tv, NULL);
tdiff= tv.tv_sec+(1.e-6*(double) tv.tv_usec);
fflush(stdout);
@ -485,7 +484,7 @@ ex:;
free(cpt);
#endif
gettimeofday(&tv,&tz);
gettimeofday(&tv, NULL);
xorriso->idle_time+= tv.tv_sec+(1.e-6*(double) tv.tv_usec)-tdiff;
return(ret);
}