From: Ondrej Zajicek Date: Thu, 14 Sep 2023 15:24:09 +0000 (+0200) Subject: Conf: Move definition of struct keyword to conf.h X-Git-Tag: v2.14~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ffea830b673a8b8506877a371e0c9fc52c99b94;p=thirdparty%2Fbird.git Conf: Move definition of struct keyword to conf.h --- diff --git a/conf/cf-lex.l b/conf/cf-lex.l index cee0e63e9..dd62e31a3 100644 --- a/conf/cf-lex.l +++ b/conf/cf-lex.l @@ -51,11 +51,6 @@ #include "lib/string.h" #include "lib/hash.h" -struct keyword { - byte *name; - int value; -}; - #include "conf/keywords.h" /* Could be defined by Bison in cf-parse.tab.h, inteferes with SYM hash */ diff --git a/conf/conf.h b/conf/conf.h index 1413cb581..c301df1d2 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -110,6 +110,11 @@ void cfg_copy_list(list *dest, list *src, unsigned node_size); extern int (*cf_read_hook)(byte *buf, uint max, int fd); +struct keyword { + byte *name; + int value; +}; + struct symbol { node n; /* In list of symbols in config */ struct symbol *next;