aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-08-08 02:45:48 +0000
committerEd Schouten <ed@FreeBSD.org>2010-08-08 02:45:48 +0000
commitd69ce4ec7a8ab6ab44f6a3e4c479b714088ccafd (patch)
treef5973d996675879b19cb33c0ffb09649b2b81494 /libexec
parent467a4a27485e557075b598bd93a92b5a72832c75 (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/talkd/announce.c3
-rw-r--r--libexec/talkd/table.c7
2 files changed, 4 insertions, 6 deletions
diff --git a/libexec/talkd/announce.c b/libexec/talkd/announce.c
index 4ebeb261a826..869197e5c52c 100644
--- a/libexec/talkd/announce.c
+++ b/libexec/talkd/announce.c
@@ -99,7 +99,6 @@ print_mesg(const char *tty, CTL_MSG *request,
{
struct timeval now;
time_t clock_sec;
- struct timezone zone;
struct tm *localclock;
struct iovec iovec;
char line_buf[N_LINES][N_CHARS];
@@ -110,7 +109,7 @@ print_mesg(const char *tty, CTL_MSG *request,
i = 0;
max_size = 0;
- gettimeofday(&now, &zone);
+ gettimeofday(&now, NULL);
clock_sec = now.tv_sec;
localclock = localtime(&clock_sec);
(void)snprintf(line_buf[i], N_CHARS, " ");
diff --git a/libexec/talkd/table.c b/libexec/talkd/table.c
index 001e7d41db7a..dcaed9c2a3e3 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);