diff options
author | Steven Schubiger <stsc@refcnt.org> | 2017-05-17 17:34:34 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2017-05-17 17:34:34 +0200 |
commit | ec07f2562879ae4bbe93ca1de0854b250c9f72fa (patch) | |
tree | 48c5fca1cdafcd6c9651915f7b3dcdbb0752743e | |
parent | 611014f73d9183a4ddda3476e6e0d6b48763be9a (diff) | |
download | colorize-ec07f2562879ae4bbe93ca1de0854b250c9f72fa.tar.gz colorize-ec07f2562879ae4bbe93ca1de0854b250c9f72fa.tar.bz2 |
Const name_len
-rw-r--r-- | colorize.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |