From 5e2e59679b23010a04d04bbe9473dba89bd6dd30 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 17 Apr 2020 22:17:33 +0200 Subject: grid: reflow: make tracking_points array 'const' The elements aren't, and cannot be, const. But the array itself can, and should be. --- grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grid.c') diff --git a/grid.c b/grid.c index b50a095d..3c183703 100644 --- a/grid.c +++ b/grid.c @@ -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; -- cgit v1.3