summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Barvik <barvik@broadpark.no>2009-06-07 11:33:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-06-07 23:23:04 (GMT)
commitcb319c36312a16d8af9b635a75404bc0005c5119 (patch)
treee75ba4b6ec1811b33f507ee4de20eb6735125395
parent26c117d05d0714ab688ebcafc8eb68c769152bde (diff)
downloadgit-cb319c36312a16d8af9b635a75404bc0005c5119.zip
git-cb319c36312a16d8af9b635a75404bc0005c5119.tar.gz
git-cb319c36312a16d8af9b635a75404bc0005c5119.tar.bz2
symlinks.c: small style cleanup
Add {}-braces around an else-part, where the if-part already has {}-braces. And, also remove some unnecessary "return;"-statements at the end of "void foo()"-functions. Signed-off-by: Kjetil Barvik <barvik@broadpark.no> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--symlinks.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/symlinks.c b/symlinks.c
index 1d6b35b..8dcd632 100644
--- a/symlinks.c
+++ b/symlinks.c
@@ -196,8 +196,9 @@ void invalidate_lstat_cache(const char *name, int len)
cache.path[previous_slash] = '\0';
cache.len = previous_slash;
cache.flags = FL_DIR;
- } else
+ } else {
reset_lstat_cache();
+ }
}
}
@@ -263,7 +264,6 @@ static void do_remove_scheduled_dirs(int new_len)
removal.path[removal.len] != '/');
}
removal.len = new_len;
- return;
}
void schedule_dir_for_removal(const char *name, int len)
@@ -296,11 +296,9 @@ void schedule_dir_for_removal(const char *name, int len)
last_slash - match_len);
removal.len = last_slash;
}
- return;
}
void remove_scheduled_dirs(void)
{
do_remove_scheduled_dirs(0);
- return;
}