summaryrefslogtreecommitdiffstats
path: root/compat/gettod.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-14 06:42:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-14 06:42:58 (GMT)
commitc9376306301e578615cfee52d2121f78cb31a225 (patch)
treeb80d507267bc38923d21ef904af4a227e2f4909d /compat/gettod.c
parent343b0349d4d4b41ca86832298dead909b1ef055d (diff)
downloadtcl-c9376306301e578615cfee52d2121f78cb31a225.zip
tcl-c9376306301e578615cfee52d2121f78cb31a225.tar.gz
tcl-c9376306301e578615cfee52d2121f78cb31a225.tar.bz2
Remove "register" keyword in various places. Also add some type-casts to help C++ compatibility.
Diffstat (limited to 'compat/gettod.c')
-rw-r--r--compat/gettod.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/gettod.c b/compat/gettod.c
index ca20cf8..f6651d4 100644
--- a/compat/gettod.c
+++ b/compat/gettod.c
@@ -21,10 +21,11 @@ gettimeofday(
struct timezone *tz)
{
struct timeb t;
+ (void)tz;
ftime(&t);
tp->tv_sec = t.time;
- tp->tv_usec = t. millitm * 1000;
+ tp->tv_usec = t.millitm * 1000;
return 0;
}