grid: reflow: make tracking_points array 'const'

The elements aren't, and cannot be, const. But the array itself can,
and should be.
This commit is contained in:
Daniel Eklöf 2020-04-17 22:17:33 +02:00
parent a9af8290ab
commit 5e2e59679b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 2 additions and 2 deletions

2
grid.c
View file

@ -57,7 +57,7 @@ void
grid_reflow(struct grid *grid, int new_rows, int new_cols,
int old_screen_rows, int new_screen_rows,
size_t tracking_points_count,
struct coord *_tracking_points[static tracking_points_count])
struct coord *const _tracking_points[static tracking_points_count])
{
struct row *const *old_grid = grid->rows;
const int old_rows = grid->num_rows;