]> git.refcnt.org Git - colorize.git/commitdiff
Const DESC_TYPE
authorSteven Schubiger <stsc@refcnt.org>
Tue, 20 Aug 2019 21:40:13 +0000 (23:40 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Tue, 20 Aug 2019 21:40:13 +0000 (23:40 +0200)
colorize.c

index f80bdced0626687af9494834053e7991c89576b2..854581bee0e3c6a73f1cfb10e39f3ebd79e5ce06 100644 (file)
@@ -526,7 +526,7 @@ process_opt_attr (const char *p, const bool is_opt)
     };
     unsigned int attr_types = 0;
     const char *desc_type[2] = { "--attr switch", "attr conf option" };
     };
     unsigned int attr_types = 0;
     const char *desc_type[2] = { "--attr switch", "attr conf option" };
-    unsigned int DESC_TYPE = is_opt ? DESC_OPTION : DESC_CONF;
+    const unsigned int DESC_TYPE = is_opt ? DESC_OPTION : DESC_CONF;
 
     while (*p)
       {
 
     while (*p)
       {