From ad0cd361c05d28b54239e1e85b61f07c13614080 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 17 Apr 2013 02:09:19 +0000 Subject: give a timespec a name that is easier to verify --- lib/libc/asr/asr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/libc') 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 * @@ -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 || -- cgit v1.2.3