]> Pileus Git - ~andy/git/commitdiff
entry.c: mark file-local function static
authorJunio C Hamano <gitster@pobox.com>
Tue, 12 Jan 2010 06:27:31 +0000 (22:27 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jan 2010 09:06:08 +0000 (01:06 -0800)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
entry.c

diff --git a/cache.h b/cache.h
index 3f9ee861477883a5a9f27aea768a8c070559a891..30b9048dfe052f898bf7af91b40a3fd7206c7acb 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -473,9 +473,6 @@ extern int index_fd(unsigned char *sha1, int fd, struct stat *st, int write_obje
 extern int index_path(unsigned char *sha1, const char *path, struct stat *st, int write_object);
 extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st);
 
-/* "careful lstat()" */
-extern int check_path(const char *path, int len, struct stat *st, int skiplen);
-
 #define REFRESH_REALLY         0x0001  /* ignore_valid */
 #define REFRESH_UNMERGED       0x0002  /* allow unmerged */
 #define REFRESH_QUIET          0x0004  /* be quiet about it */
diff --git a/entry.c b/entry.c
index 06d24f14c6ba9401637aebfb11659ae747796c06..55b988e22b0381a0d4a43f2367248f4c60b0f51c 100644 (file)
--- a/entry.c
+++ b/entry.c
@@ -179,7 +179,7 @@ static int write_entry(struct cache_entry *ce, char *path, const struct checkout
  * This is like 'lstat()', except it refuses to follow symlinks
  * in the path, after skipping "skiplen".
  */
-int check_path(const char *path, int len, struct stat *st, int skiplen)
+static int check_path(const char *path, int len, struct stat *st, int skiplen)
 {
        const char *slash = path + len;