From 02627e76095f05620ba641ef5efa84bbfe68b6b0 Mon Sep 17 00:00:00 2001 From: Grayson MacKenzie Date: Tue, 22 Jul 2014 18:35:21 -0400 Subject: [PATCH] Minor syntax cleanup. Changed parameter of select_drawable_font() to const --- bar.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bar.c b/bar.c index 9ed5e60..3dac275 100644 --- a/bar.c +++ b/bar.c @@ -298,7 +298,7 @@ area_add (char *str, const char *optend, char **end, monitor_t *mon, const int x /* returns NULL if character cannot be printed */ font_t * -select_drawable_font (uint16_t c) +select_drawable_font (const uint16_t c) { /* if the end is reached without finding an apropriate font, return NULL. * If the font can draw the character, return it. @@ -839,9 +839,8 @@ init (void) if (!font_list[0]) exit(EXIT_FAILURE); - for (uint16_t i = 0; i < FONT_CACHE_SIZE; i++) { + for (uint16_t i = 0; i < FONT_CACHE_SIZE; i++) font_cache[i] = select_drawable_font(i); - } /* To make the alignment uniform, find maximum height */ int maxh = font_list[0]->height;