summaryrefslogtreecommitdiffstats
path: root/style.c
diff options
context:
space:
mode:
authornicm <nicm>2017-01-13 11:58:49 +0000
committernicm <nicm>2017-01-13 11:58:49 +0000
commit08d21936e4559a92174361d7785ca3e967972edb (patch)
tree999797436996e1bcc5ff29915313754bfe436d3b /style.c
parent22a528905d178551b9a374db2da673664f4203b3 (diff)
options_get_style return const too.
Diffstat (limited to 'style.c')
-rw-r--r--style.c4
1 files changed, 2 insertions, 2 deletions
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)