]> git.refcnt.org Git - colorize.git/blobdiff - colorize.c
Const name_len
[colorize.git] / colorize.c
index 8d5ca90ff32b5bee5df1bcb2fbc2ece5da6e5395..69f1b51bf33a1bd54b82a5ae82da9ba1555b2baa 100644 (file)
@@ -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);