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.h
View file

@ -10,7 +10,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]);
static inline int
grid_row_absolute(const struct grid *grid, int row_no)