aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2017-05-17 17:34:34 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2017-05-17 17:34:34 +0200
commitec07f2562879ae4bbe93ca1de0854b250c9f72fa (patch)
tree48c5fca1cdafcd6c9651915f7b3dcdbb0752743e /colorize.c
parent611014f73d9183a4ddda3476e6e0d6b48763be9a (diff)
downloadcolorize-ec07f2562879ae4bbe93ca1de0854b250c9f72fa.tar.gz
colorize-ec07f2562879ae4bbe93ca1de0854b250c9f72fa.tar.bz2
Const name_len
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c2
1 files changed, 1 insertions, 1 deletions
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);