mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 11:18:43 +00:00
isisd: Make clang-16 compiler happy with isisd
Signed-off-by: Donald Sharp <donaldsharp72@gmail.com>
This commit is contained in:
parent
2816045a6e
commit
103372fd75
@ -723,7 +723,7 @@ void isis_vrf_init(void)
|
|||||||
vrf_cmd_init(NULL);
|
vrf_cmd_init(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void isis_terminate()
|
void isis_terminate(void)
|
||||||
{
|
{
|
||||||
struct isis *isis;
|
struct isis *isis;
|
||||||
struct listnode *node, *nnode;
|
struct listnode *node, *nnode;
|
||||||
@ -2745,7 +2745,6 @@ static void show_isis_database_json(struct json_object *json, const char *sysid_
|
|||||||
struct isis_area *area;
|
struct isis_area *area;
|
||||||
int level;
|
int level;
|
||||||
struct json_object *tag_area_json,*area_json, *lsp_json, *area_arr_json, *arr_json;
|
struct json_object *tag_area_json,*area_json, *lsp_json, *area_arr_json, *arr_json;
|
||||||
uint8_t area_cnt = 0;
|
|
||||||
|
|
||||||
if (isis->area_list->count == 0)
|
if (isis->area_list->count == 0)
|
||||||
return;
|
return;
|
||||||
@ -2770,7 +2769,6 @@ static void show_isis_database_json(struct json_object *json, const char *sysid_
|
|||||||
json_object_array_add(arr_json, lsp_json);
|
json_object_array_add(arr_json, lsp_json);
|
||||||
}
|
}
|
||||||
json_object_array_add(area_arr_json, area_json);
|
json_object_array_add(area_arr_json, area_json);
|
||||||
area_cnt++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3232,7 +3230,7 @@ void isis_area_overload_on_startup_set(struct isis_area *area,
|
|||||||
* Returns the path of the file (non-volatile memory) that contains restart
|
* Returns the path of the file (non-volatile memory) that contains restart
|
||||||
* information.
|
* information.
|
||||||
*/
|
*/
|
||||||
char *isis_restart_filepath()
|
char *isis_restart_filepath(void)
|
||||||
{
|
{
|
||||||
static char filepath[MAXPATHLEN];
|
static char filepath[MAXPATHLEN];
|
||||||
snprintf(filepath, sizeof(filepath), ISISD_RESTART, "");
|
snprintf(filepath, sizeof(filepath), ISISD_RESTART, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user