summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-10-25 20:06:49 -0400
committerDonald Sharp <donaldsharp72@gmail.com>2022-10-25 20:06:49 -0400
commit103372fd75d4bda27c6e87cdc7146d4060d6d873 (patch)
tree8ae6e10d4478c49d5dbbe330aa21741f3c9fa428
parent2816045a6edf64db6c5018db54a33aa4f66fca58 (diff)
isisd: Make clang-16 compiler happy with isisd
Signed-off-by: Donald Sharp <donaldsharp72@gmail.com>
-rw-r--r--isisd/isisd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/isisd/isisd.c b/isisd/isisd.c
index efea1e5d5e..17f4b20737 100644
--- a/isisd/isisd.c
+++ b/isisd/isisd.c
@@ -723,7 +723,7 @@ void isis_vrf_init(void)
vrf_cmd_init(NULL);
}
-void isis_terminate()
+void isis_terminate(void)
{
struct isis *isis;
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;
int level;
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)
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(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
* information.
*/
-char *isis_restart_filepath()
+char *isis_restart_filepath(void)
{
static char filepath[MAXPATHLEN];
snprintf(filepath, sizeof(filepath), ISISD_RESTART, "");