diff options
author | Kevin B Kenny <kennykb@acm.org> | 2008-04-14 17:34:16 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2008-04-14 17:34:16 (GMT) |
commit | 91ce70b80fd6fd1079ab42af2b96f0e30a8a7eae (patch) | |
tree | db18e0b7273907995d3721b1255797d215ed1302 /unix | |
parent | 8e3a6da32062c9f3bb6d1c20cae59a5564252a7a (diff) | |
download | tcl-91ce70b80fd6fd1079ab42af2b96f0e30a8a7eae.zip tcl-91ce70b80fd6fd1079ab42af2b96f0e30a8a7eae.tar.gz tcl-91ce70b80fd6fd1079ab42af2b96f0e30a8a7eae.tar.bz2 |
* unix/tclUnixTime.c (TclpGetClicks, Tcl_GetTime): Removed
obsolete use of 'struct timezone' in the call to 'gettimeofday'.
[Bug 1942197].
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixTime.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c index e4ac865..6a42d97 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.15.2.6 2007/04/21 19:52:15 kennykb Exp $ + * RCS: @(#) $Id: tclUnixTime.c,v 1.15.2.7 2008/04/14 17:34:17 kennykb Exp $ */ #include "tclInt.h" @@ -97,13 +97,12 @@ TclpGetClicks() struct tms dummy; #else struct timeval date; - struct timezone tz; #endif #ifdef NO_GETTOD now = (unsigned long) times(&dummy); #else - gettimeofday(&date, &tz); + gettimeofday(&date, NULL); now = date.tv_sec*1000000 + date.tv_usec; #endif @@ -250,9 +249,8 @@ Tcl_GetTime(timePtr) Tcl_Time *timePtr; /* Location to store time information. */ { struct timeval tv; - struct timezone tz; - (void) gettimeofday(&tv, &tz); + (void) gettimeofday(&tv, NULL); timePtr->sec = tv.tv_sec; timePtr->usec = tv.tv_usec; } |