diff options
author | kennykb <kennykb@noemail.net> | 2008-04-14 17:49:59 (GMT) |
---|---|---|
committer | kennykb <kennykb@noemail.net> | 2008-04-14 17:49:59 (GMT) |
commit | 061c1893d55f9e10fcddd9bcc9468471d3174fb2 (patch) | |
tree | d078d9982c750f9932f748e6df9796543acec234 /unix | |
parent | 3ac74538249e68fbb0c0438af035d8434e2a62ca (diff) | |
download | tcl-061c1893d55f9e10fcddd9bcc9468471d3174fb2.zip tcl-061c1893d55f9e10fcddd9bcc9468471d3174fb2.tar.gz tcl-061c1893d55f9e10fcddd9bcc9468471d3174fb2.tar.bz2 |
* unix/tclUnixTime.c (NativeGetTime): Removed obsolete use of
'struct timezone' in the call to 'gettimeofday'. [Bug 1942197].
FossilOrigin-Name: ec37817fc47ea5584aeac174db469b5ba9f05484
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixTime.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c index fc19d6d..f989f01 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.33.2.1 2008/04/14 17:49:59 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; } |