]> git.ipfire.org Git - thirdparty/git.git/blobdiff - oid-array.c
oid_pos(): access table through const pointers
[thirdparty/git.git] / oid-array.c
index a19235afbf8408734b38eddea7ef5bf3fe29e673..73ba76e9e9a223306a03c3d04123c0c4af4aeda2 100644 (file)
@@ -22,9 +22,9 @@ void oid_array_sort(struct oid_array *array)
        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];
 }