Changes:
- Remove unused variable.
- Make prototypes static like the declaration.
- Fix new compilers complaint about uninitialized values.
- Fix new compilers complaint about small buffer for `snprintf` concatenation.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
struct filter *filter)
{
struct access_master *master;
- struct filter *replace = filter;
master = access->master;
int64_t sseq;
char xpath[XPATH_MAXLEN];
char xpath_entry[XPATH_MAXLEN + 32];
- char xpath_value[XPATH_MAXLEN + 64];
+ char xpath_value[XPATH_MAXLEN + 128];
/*
* Create the prefix-list first, so we can generate sequence if
int64_t sseq;
char xpath[XPATH_MAXLEN];
char xpath_entry[XPATH_MAXLEN + 32];
- char xpath_value[XPATH_MAXLEN + 64];
+ char xpath_value[XPATH_MAXLEN + 128];
/*
* Create the prefix-list first, so we can generate sequence if
*/
static int lib_access_list_create(struct nb_cb_create_args *args)
{
- struct access_list *acl;
+ struct access_list *acl = NULL;
const char *acl_name;
int type;
*/
static int lib_prefix_list_create(struct nb_cb_create_args *args)
{
- struct prefix_list *pl;
+ struct prefix_list *pl = NULL;
const char *name;
int type;