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

@ -1,7 +1,7 @@
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
Copyright 2007-2015 Thomas Schmitt, <scdbackup@gmx.net>
Copyright 2007-2016 Thomas Schmitt, <scdbackup@gmx.net>
Provided under GPL version 2 or later.
@ -2072,9 +2072,8 @@ int Xorriso_execute_option(struct XorrisO *xorriso, char *line, int flag)
char **argv= NULL;
double tdiff;
struct timeval tv;
struct timezone tz;
gettimeofday(&tv,&tz);
gettimeofday(&tv, NULL);
Xorriso_reset_counters(xorriso,0);
xorriso->idle_time= 0.0;
tdiff= tv.tv_sec+(1.e-6*(double) tv.tv_usec);
@ -2091,7 +2090,7 @@ int Xorriso_execute_option(struct XorrisO *xorriso, char *line, int flag)
ret= Xorriso_interpreter(xorriso, argc, argv, &idx, flag&0xffff);
if(ret<0)
goto ex;
gettimeofday(&tv,&tz);
gettimeofday(&tv, NULL);
tdiff= tv.tv_sec+(1.e-6*(double) tv.tv_usec)-tdiff-xorriso->idle_time;
if(tdiff<0.001)
tdiff= 0.001;