{"thread":{"id":"211","subject":"[PATCH 05/19] migrate checkout-cache.c to the new cache api's","startedAt":"2005-04-21T18:35:43Z","lastAt":"2005-04-21T18:35:43Z","messageCount":1,"participants":["Brad Roberts"],"isPatch":true,"patchVersion":1,"patchTotal":19},"messages":[{"id":"1160","messageId":"200504211835.j3LIZhlA027471@gameboy2.puremagic.com","threadId":"211","inReplyTo":null,"subject":"[PATCH 05/19] migrate checkout-cache.c to the new cache api's","fromName":"Brad Roberts","fromEmail":"braddr@gameboy2.puremagic.com","sentAt":"2005-04-21T18:35:43Z","receivedAt":"2005-04-21T18:35:43Z","isPatch":true,"sender":{"key":"braddr@gameboy2.puremagic.com","avatar":null},"body":"tree b95df78e4cc90db8c4c8d0ad870bef74b7fd29e2\nparent 40bf732f5bcb986943070a2ed6c09a16543d81be\nauthor Brad Roberts <braddr@puremagic.com> 1114074234 -0700\ncommitter Brad Roberts <braddr@gameboy2.puremagic.com> 1114074234 -0700\n\n[PATCH] migrate checkout-cache.c to the new cache api's\n\nSigned-off-by: Brad Roberts <braddr@puremagic.com>\n---\n\n checkout-cache.c |    6 +++---\n 1 files changed, 3 insertions(+), 3 deletions(-)\n\nIndex: checkout-cache.c\n===================================================================\n--- 40bf732f5bcb986943070a2ed6c09a16543d81be:1/checkout-cache.c  (mode:100644 sha1:8bf86016b5d5fd88a52ce694fc59bb9ecb550d22)\n+++ f908b2542a9a3ea321633a31cf0e7ca2c8b669d4:1/checkout-cache.c  (mode:100644 sha1:bf9cd0572c883219d37f2788ec5f5553a136df2b)\n@@ -128,15 +128,15 @@\n \t\t\tfprintf(stderr, \"checkout-cache: %s is not in the cache\\n\", name);\n \t\treturn -1;\n \t}\n-\treturn checkout_entry(active_cache[pos]);\n+\treturn checkout_entry(get_cache_entry(pos));\n }\n \n static int checkout_all(void)\n {\n \tint i;\n \n-\tfor (i = 0; i < active_nr ; i++) {\n-\t\tstruct cache_entry *ce = active_cache[i];\n+\tfor (i = 0; i < get_num_cache_entries() ; i++) {\n+\t\tstruct cache_entry *ce = get_cache_entry(i);\n \t\tif (ce_stage(ce))\n \t\t\tcontinue;\n \t\tif (checkout_entry(ce) < 0)\n\n"}]}