From 08d21936e4559a92174361d7785ca3e967972edb Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 13 Jan 2017 11:58:49 +0000 Subject: options_get_style return const too. --- style.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'style.c') diff --git a/style.c b/style.c index f4a8f05f..26bb75a9 100644 --- a/style.c +++ b/style.c @@ -182,7 +182,7 @@ style_update_old(struct options *oo, const char *name, struct grid_cell *gc) void style_apply(struct grid_cell *gc, struct options *oo, const char *name) { - struct grid_cell *gcp; + const struct grid_cell *gcp; memcpy(gc, &grid_default_cell, sizeof *gc); gcp = options_get_style(oo, name); @@ -195,7 +195,7 @@ style_apply(struct grid_cell *gc, struct options *oo, const char *name) void style_apply_update(struct grid_cell *gc, struct options *oo, const char *name) { - struct grid_cell *gcp; + const struct grid_cell *gcp; gcp = options_get_style(oo, name); if (gcp->fg != 8) -- cgit v1.2.3