From ec07f2562879ae4bbe93ca1de0854b250c9f72fa Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Wed, 17 May 2017 17:34:34 +0200 Subject: Const name_len --- colorize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorize.c b/colorize.c index 8d5ca90..69f1b51 100644 --- a/colorize.c +++ b/colorize.c @@ -458,7 +458,7 @@ process_opt_attr (const char *p) unsigned int i; for (i = 0; i < sizeof (attrs) / sizeof (struct attr); i++) { - size_t name_len = strlen (attrs[i].name); + const size_t name_len = strlen (attrs[i].name); if ((size_t)(p - s) == name_len && strneq (s, attrs[i].name, name_len)) { write_attr (attrs[i].val, &attr_types, attrs[i].type, attrs[i].name); -- cgit v1.2.3