From: Carsten Kutzner Date: Tue, 1 Mar 2011 12:06:31 +0000 (+0100) Subject: Fixed bug #714: deprecated structure in gettimeofday X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=47eef81f8b01a30b9e096c15cb86a77c1b4c0258;p=alexxy%2Fgromacs.git Fixed bug #714: deprecated structure in gettimeofday --- diff --git a/src/mdlib/sim_util.c b/src/mdlib/sim_util.c index d8d94ffe70..60ef80e6c3 100644 --- a/src/mdlib/sim_util.c +++ b/src/mdlib/sim_util.c @@ -112,10 +112,9 @@ gmx_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; diff --git a/src/tools/gmx_tune_pme.c b/src/tools/gmx_tune_pme.c index b775d170dc..e70f5ea85d 100644 --- 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;