]> git.tue.mpg.de Git - paraslash.git/commitdiff
avoid gcc warning message
authorAndre <maan@p133.(none)>
Fri, 14 Jul 2006 11:57:26 +0000 (13:57 +0200)
committerAndre <maan@p133.(none)>
Fri, 14 Jul 2006 11:57:26 +0000 (13:57 +0200)
afs.c:291: warning: declaration of `log' shadows a global declaration

afs.c

diff --git a/afs.c b/afs.c
index 49aabafb30fd7dd4e743d3fd9bfd3cab916d8a7d..b9d24331148263bfeca4ae075a989ca89eeeb3fb 100644 (file)
--- 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;
 }