array->sorted = 1;
}
-static const struct object_id *oid_access(size_t index, void *table)
+static const struct object_id *oid_access(size_t index, const void *table)
{
- struct object_id *array = table;
+ const struct object_id *array = table;
return &array[index];
}