Replaced unused timezone parameter of gettimeofday() by NULL
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user