X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcycle-check.c;h=2f31cb9f01a53c4495472caa735bcc9c2da6411b;hb=c8068b3df116650efbf0fbf2d790c706577ae972;hp=e120460e610a5d6ae510d338a13318efa5cac336;hpb=d2ce0449310435ff3ae29a08f74c21a961bd5e56;p=gnulib.git diff --git a/lib/cycle-check.c b/lib/cycle-check.c index e120460e6..2f31cb9f0 100644 --- a/lib/cycle-check.c +++ b/lib/cycle-check.c @@ -1,6 +1,6 @@ /* help detect directory cycles efficiently - Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 2003-2006, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -70,12 +70,12 @@ cycle_check (struct cycle_check_state *state, struct stat const *sb) if (is_zero_or_power_of_two (++(state->chdir_counter))) { /* On all architectures that we know about, if the counter - overflows then there is a directory cycle here somewhere, - even if we haven't detected it yet. Typically this happens - only after the counter is incremented 2**64 times, so it's a - fairly theoretical point. */ + overflows then there is a directory cycle here somewhere, + even if we haven't detected it yet. Typically this happens + only after the counter is incremented 2**64 times, so it's a + fairly theoretical point. */ if (state->chdir_counter == 0) - return true; + return true; state->dev_ino.st_dev = sb->st_dev; state->dev_ino.st_ino = sb->st_ino;