summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTime.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2008-04-14 17:54:57 (GMT)
committerKevin B Kenny <kennykb@acm.org>2008-04-14 17:54:57 (GMT)
commit2c3763b2c9f82d3ac87313a1c540b0deaa8f86c8 (patch)
treedf7bbca03e40f7e4eb38810927b423b98a7abc48 /unix/tclUnixTime.c
parentef0b14ed3a5c16f774a0ef357ace03f04d09dae5 (diff)
downloadtcl-2c3763b2c9f82d3ac87313a1c540b0deaa8f86c8.zip
tcl-2c3763b2c9f82d3ac87313a1c540b0deaa8f86c8.tar.gz
tcl-2c3763b2c9f82d3ac87313a1c540b0deaa8f86c8.tar.bz2
* unix/tclUnixTime.c (NativeGetTime): Removed obsolete use of
'struct timezone' in the call to 'gettimeofday'. [Bug 1942197].
Diffstat (limited to 'unix/tclUnixTime.c')
-rw-r--r--unix/tclUnixTime.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c
index fc19d6d..780098f 100644
--- a/unix/tclUnixTime.c
+++ b/unix/tclUnixTime.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixTime.c,v 1.33 2007/12/13 15:28:42 dgp Exp $
+ * RCS: @(#) $Id: tclUnixTime.c,v 1.34 2008/04/14 17:54:57 kennykb Exp $
*/
#include "tclInt.h"
@@ -603,9 +603,8 @@ NativeGetTime(
ClientData clientData)
{
struct timeval tv;
- struct timezone tz;
- (void) gettimeofday(&tv, &tz);
+ (void) gettimeofday(&tv, NULL);
timePtr->sec = tv.tv_sec;
timePtr->usec = tv.tv_usec;
}