From 0b40adf4415ff14ca898ef31a9dc61e70bee7e10 Mon Sep 17 00:00:00 2001 From: Andre Date: Fri, 14 Jul 2006 13:57:26 +0200 Subject: [PATCH] avoid gcc warning message afs.c:291: warning: declaration of `log' shadows a global declaration --- afs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/afs.c b/afs.c index 49aabafb..b9d24331 100644 --- a/afs.c +++ b/afs.c @@ -288,14 +288,15 @@ free: } static int chk_barrier(const char *bname, const struct timeval *now, - const struct timeval *barrier, struct timeval *diff, int log) + const struct timeval *barrier, struct timeval *diff, + int print_log) { long ms; if (tv_diff(now, barrier, diff) > 0) return 1; ms = tv2ms(diff); - if (log && ms) + if (print_log && ms) PARA_DEBUG_LOG("%s barrier: %lims left\n", bname, ms); return -1; } -- 2.39.5