biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed bug #714: deprecated structure in gettimeofday
[alexxy/gromacs.git]
/
src
/
tools
/
gmx_tune_pme.c
diff --git
a/src/tools/gmx_tune_pme.c
b/src/tools/gmx_tune_pme.c
index b775d170dc49f08a6f054739c883443d2951529c..e70f5ea85d9be85db8d657210c4ef07c4c0db219 100644
(file)
--- a/
src/tools/gmx_tune_pme.c
+++ b/
src/tools/gmx_tune_pme.c
@@
-1964,10
+1964,9
@@
static double gettime()
{
#ifdef HAVE_GETTIMEOFDAY
struct timeval t;
- struct timezone tz = { 0,0 };
double seconds;
-
- gettimeofday(&t,
&tz
);
+
+ gettimeofday(&t,
NULL
);
seconds = (double) t.tv_sec + 1e-6*(double)t.tv_usec;