diff --git a/apps/backend/backend_client.h b/apps/backend/backend_client.h index 0e3b6c7c..8fd7309a 100644 --- a/apps/backend/backend_client.h +++ b/apps/backend/backend_client.h @@ -56,7 +56,6 @@ struct client_entry{ clicon_handle ce_handle; /* clicon config handle (all clients have same?) */ }; - /* * Prototypes */ diff --git a/apps/cli/cli_generate.c b/apps/cli/cli_generate.c index 7ea2b932..277dbfb7 100644 --- a/apps/cli/cli_generate.c +++ b/apps/cli/cli_generate.c @@ -353,7 +353,7 @@ yang2cli_var_pattern(clicon_handle h, } /* Forward */ -static int yang2cli_stmt(clicon_handle h, yang_stmt *ys, enum genmodel_type gt, +static int yang2cli_stmt(clicon_handle h, yang_stmt *ys, genmodel_type gt, int level, int state, int show_tree, cbuf *cb); @@ -652,7 +652,7 @@ yang2cli_var(clicon_handle h, static int yang2cli_leaf(clicon_handle h, yang_stmt *ys, - enum genmodel_type gt, + genmodel_type gt, int level, int callback, int show_tree, @@ -729,7 +729,7 @@ yang2cli_leaf(clicon_handle h, static int yang2cli_container(clicon_handle h, yang_stmt *ys, - enum genmodel_type gt, + genmodel_type gt, int level, int state, int show_tree, @@ -785,13 +785,13 @@ yang2cli_container(clicon_handle h, * @param[out] cb Buffer where cligen code is written */ static int -yang2cli_list(clicon_handle h, - yang_stmt *ys, - enum genmodel_type gt, - int level, - int state, - int show_tree, - cbuf *cb) +yang2cli_list(clicon_handle h, + yang_stmt *ys, + genmodel_type gt, + int level, + int state, + int show_tree, + cbuf *cb) { yang_stmt *yc; yang_stmt *yd; @@ -903,7 +903,7 @@ yang2cli_list(clicon_handle h, static int yang2cli_choice(clicon_handle h, yang_stmt *ys, - enum genmodel_type gt, + genmodel_type gt, int level, int state, int show_tree, @@ -946,7 +946,7 @@ yang2cli_choice(clicon_handle h, static int yang2cli_stmt(clicon_handle h, yang_stmt *ys, - enum genmodel_type gt, + genmodel_type gt, int level, int state, int show_tree, @@ -1009,11 +1009,11 @@ yang2cli(clicon_handle h, int show_tree, parse_tree *pt) { - int retval = -1; - cbuf *cb = NULL; - yang_stmt *yc; - cvec *globals; /* global variables from syntax */ - enum genmodel_type gt; + int retval = -1; + cbuf *cb = NULL; + yang_stmt *yc; + cvec *globals; /* global variables from syntax */ + genmodel_type gt; if (pt == NULL){ clicon_err(OE_YANG, EINVAL, "pt is NULL"); diff --git a/apps/restconf/restconf_main_evhtp.c b/apps/restconf/restconf_main_evhtp.c index a814c06a..d637dee7 100644 --- a/apps/restconf/restconf_main_evhtp.c +++ b/apps/restconf/restconf_main_evhtp.c @@ -55,7 +55,6 @@ #include #include #include -#include #include #include #include diff --git a/lib/clixon/clixon_options.h b/lib/clixon/clixon_options.h index 3d341450..3af1f670 100644 --- a/lib/clixon/clixon_options.h +++ b/lib/clixon/clixon_options.h @@ -78,6 +78,7 @@ enum genmodel_type{ GT_ALL, /* Keywords on all variables */ GT_HIDE, /* Keywords on all variables and hide container around lists */ }; +typedef enum genmodel_type genmodel_type; /*! See clixon-config.yang type startup_mode */ enum startup_mode_t{ diff --git a/test/test_restconf_notifications.sh b/test/test_restconf_notifications.sh index 2ed86f0e..47009f40 100755 --- a/test/test_restconf_notifications.sh +++ b/test/test_restconf_notifications.sh @@ -141,7 +141,7 @@ if [ $RC -ne 0 ]; then fi new "netconf event stream discovery RFC8040 Sec 6.2" -expecteof "$clixon_netconf -D $DBG -qf $cfg" 0 "]]>]]>" "EXAMPLEExample event streamtruexmlhttps://localhost/streams/EXAMPLE]]>]]>" +expecteof "$clixon_netconf -D $DBG -qf $cfg" 0 "$DEFAULTHELLO]]>]]>" "EXAMPLEExample event streamtruexmlhttps://localhost/streams/EXAMPLE]]>]]>" # # 1.2 Netconf stream subscription