summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_crawl.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-05-15 15:36:01 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-05-15 15:36:01 +0200
commitc309f551d72e390eda6ad2e7c4782cbe261ab47b (patch)
tree327e90f071084ab3b7526dedb1ef9b1ce18347b5 /crawl-ref/source/l_crawl.cc
parentd34ecd579c544ebdac66f4fa43b1089fddfb4ff8 (diff)
downloadcrawl-ref-c309f551d72e390eda6ad2e7c4782cbe261ab47b.tar.gz
crawl-ref-c309f551d72e390eda6ad2e7c4782cbe261ab47b.zip
Don't give gettimeofday() an unused depreciated argument.
Diffstat (limited to 'crawl-ref/source/l_crawl.cc')
-rw-r--r--crawl-ref/source/l_crawl.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/l_crawl.cc b/crawl-ref/source/l_crawl.cc
index 75d258704f..4e35801587 100644
--- a/crawl-ref/source/l_crawl.cc
+++ b/crawl-ref/source/l_crawl.cc
@@ -1113,8 +1113,7 @@ LUAFN(_crawl_redraw_stats)
LUAFN(_crawl_millis)
{
struct timeval tv;
- struct timezone tz;
- const int error = gettimeofday(&tv, &tz);
+ const int error = gettimeofday(&tv, nullptr);
if (error)
{
luaL_error(ls, make_stringf("Failed to get time: %s",