threads / patch / 219

patch, 19 partsmigrate check-files.c to the new cache api's

Subject: [PATCH 10/19] migrate check-files.c to the new cache api's

## tl;dr

One message between Apr 21, 2005 and Apr 21, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Brad Roberts· Apr 21, 2005, 18:36 UTC · lore

tree 54aca1a1c5f41995c79fdf6b5f720574d0bfd8ef parent 50a6596bf7f51ecd598cd02d9c44379a9b92044a author Brad Roberts <braddr@puremagic.com> 1114077105 -0700 committer Brad Roberts <braddr@gameboy2.puremagic.com> 1114077105 -0700

[PATCH] migrate check-files.c to the new cache api's
Signed-off-by: Brad Roberts <braddr@puremagic.com>
---
 check-files.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
Show changes to diff +1 −1
Index: check-files.c
===================================================================
--- 50a6596bf7f51ecd598cd02d9c44379a9b92044a:1/check-files.c  (mode:100644 sha1:7d16691aa9d51b5b4670d5837b3527ee7c7da79c)
+++ a94803645fb68119be8835d466585c91e664a173:1/check-files.c  (mode:100644 sha1:919e418b5f0f85220445c876a37bf4cf61d26525)
@@ -26,7 +26,7 @@
 	pos = cache_name_pos(path, strlen(path));
 	if (pos < 0)
 		die("preparing to update existing file '%s' not in cache", path);
-	ce = active_cache[pos];
+	ce = get_cache_entry(pos);
 
 	if (fstat(fd, &st) < 0)
 		die("fstat(%s): %s", path, strerror(errno));

← back to recent threads