summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-17 02:09:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-17 02:09:19 +0000
commitad0cd361c05d28b54239e1e85b61f07c13614080 (patch)
tree4367cac35d8c09b81a51d18d81ad32fb25334f03 /lib/libc
parent1c32eea33535dc0556c57323cb182a4c62d194f4 (diff)
give a timespec a name that is easier to verify
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/asr/asr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/asr/asr.c b/lib/libc/asr/asr.c
index 24e4a3a20ee..ab3fc5869dd 100644
--- a/lib/libc/asr/asr.c
+++ b/lib/libc/asr/asr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asr.c,v 1.22 2013/04/11 20:19:16 otto Exp $ */
+/* $OpenBSD: asr.c,v 1.23 2013/04/17 02:09:18 deraadt Exp $ */
/*
* Copyright (c) 2010-2012 Eric Faurot <eric@openbsd.org>
*
@@ -404,19 +404,19 @@ asr_check_reload(struct asr *asr)
struct asr_ctx *ac;
#if ASR_OPT_RELOADCONF
struct stat st;
- struct timespec tp;
+ struct timespec ts;
#endif
if (asr->a_path == NULL)
return;
#if ASR_OPT_RELOADCONF
- if (clock_gettime(CLOCK_MONOTONIC, &tp) == -1)
+ if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1)
return;
- if ((tp.tv_sec - asr->a_rtime) < RELOAD_DELAY && asr->a_rtime != 0)
+ if ((ts.tv_sec - asr->a_rtime) < RELOAD_DELAY && asr->a_rtime != 0)
return;
- asr->a_rtime = tp.tv_sec;
+ asr->a_rtime = ts.tv_sec;
DPRINT("asr: checking for update of \"%s\"\n", asr->a_path);
if (stat(asr->a_path, &st) == -1 ||