diff options
author | ed <ed@FreeBSD.org> | 2010-08-08 02:45:48 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-08-08 02:45:48 +0000 |
commit | 0c25417d5317e7f83c6f29ba0d739b3b204864b3 (patch) | |
tree | f5973d996675879b19cb33c0ffb09649b2b81494 /libexec/talkd/table.c | |
parent | 083b718d7b5df38d691ccc7eaae31ef8da7a4f88 (diff) | |
download | FreeBSD-src-0c25417d5317e7f83c6f29ba0d739b3b204864b3.zip FreeBSD-src-0c25417d5317e7f83c6f29ba0d739b3b204864b3.tar.gz |
Remove unneeded use of struct timezone.
We can safely call gettimeofday() without passing a struct timezone.
We're not using it at all.
Diffstat (limited to 'libexec/talkd/table.c')
-rw-r--r-- | libexec/talkd/table.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libexec/talkd/table.c b/libexec/talkd/table.c index 001e7d4..dcaed9c 100644 --- a/libexec/talkd/table.c +++ b/libexec/talkd/table.c @@ -66,7 +66,6 @@ static const char rcsid[] = extern int debug; struct timeval tp; -struct timezone txp; typedef struct table_entry TABLE_ENTRY; @@ -91,7 +90,7 @@ find_match(CTL_MSG *request) TABLE_ENTRY *ptr; time_t current_time; - gettimeofday(&tp, &txp); + gettimeofday(&tp, NULL); current_time = tp.tv_sec; if (debug) print_request("find_match", request); @@ -124,7 +123,7 @@ find_request(CTL_MSG *request) TABLE_ENTRY *ptr; time_t current_time; - gettimeofday(&tp, &txp); + gettimeofday(&tp, NULL); current_time = tp.tv_sec; /* * See if this is a repeated message, and check for @@ -161,7 +160,7 @@ insert_table(CTL_MSG *request, CTL_RESPONSE *response) TABLE_ENTRY *ptr; time_t current_time; - gettimeofday(&tp, &txp); + gettimeofday(&tp, NULL); current_time = tp.tv_sec; request->id_num = new_id(); response->id_num = htonl(request->id_num); |