Commit 7b5fe049 by Vicent Marti

odb-pack: Do not declare variables mid-function

parent fea400f8
...@@ -959,7 +959,7 @@ static int pack_entry_find_offset( ...@@ -959,7 +959,7 @@ static int pack_entry_find_offset(
const uint32_t *level1_ofs = p->index_map.data; const uint32_t *level1_ofs = p->index_map.data;
const unsigned char *index = p->index_map.data; const unsigned char *index = p->index_map.data;
unsigned hi, lo, stride; unsigned hi, lo, stride;
int found = 0; int pos, found = 0;
*offset_out = 0; *offset_out = 0;
...@@ -997,7 +997,7 @@ static int pack_entry_find_offset( ...@@ -997,7 +997,7 @@ static int pack_entry_find_offset(
#endif #endif
/* Use git.git lookup code */ /* Use git.git lookup code */
int pos = sha1_entry_pos(index, stride, 0, lo, hi, p->num_objects, short_oid->id); pos = sha1_entry_pos(index, stride, 0, lo, hi, p->num_objects, short_oid->id);
const unsigned char *current; const unsigned char *current;
if (pos >= 0) { if (pos >= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment