]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/termtable.c
*: remove the checking returned value for hash_get()
[mirror_frr.git] / lib / termtable.c
index b59c1118f8ab17597777ec4f7016fb8b77247f5f..ddf8822853775aff9854d6d41c975bcfef759cce 100644 (file)
 #include "memory.h"
 #include "termtable.h"
 
-DEFINE_MTYPE_STATIC(LIB, TTABLE, "ASCII table")
+DEFINE_MTYPE_STATIC(LIB, TTABLE, "ASCII table");
 
 /* clang-format off */
-struct ttable_style ttable_styles[] = {
+const struct ttable_style ttable_styles[] = {
        {       // default ascii
                .corner = '+',
                .rownums_on = false,
@@ -99,7 +99,7 @@ void ttable_del(struct ttable *tt)
        XFREE(MTYPE_TTABLE, tt);
 }
 
-struct ttable *ttable_new(struct ttable_style *style)
+struct ttable *ttable_new(const struct ttable_style *style)
 {
        struct ttable *tt;