inst_name = ospf6->name ? ospf6->name : VRF_DEFAULT_NAME;
- json = json_object_from_file(OSPF6D_GR_STATE);
+ json = json_object_from_file((char *)OSPF6D_GR_STATE);
if (json == NULL)
json = json_object_new_object();
json_object_int_add(json_instance, "timestamp",
time(NULL) + ospf6->gr_info.grace_period);
- json_object_to_file_ext(OSPF6D_GR_STATE, json, JSON_C_TO_STRING_PRETTY);
+ json_object_to_file_ext((char *)OSPF6D_GR_STATE, json,
+ JSON_C_TO_STRING_PRETTY);
json_object_free(json);
}
inst_name = ospf6->name ? ospf6->name : VRF_DEFAULT_NAME;
- json = json_object_from_file(OSPF6D_GR_STATE);
+ json = json_object_from_file((char *)OSPF6D_GR_STATE);
if (json == NULL)
json = json_object_new_object();
json_object_object_del(json_instances, inst_name);
- json_object_to_file_ext(OSPF6D_GR_STATE, json, JSON_C_TO_STRING_PRETTY);
+ json_object_to_file_ext((char *)OSPF6D_GR_STATE, json,
+ JSON_C_TO_STRING_PRETTY);
json_object_free(json);
}
inst_name = ospf6->name ? ospf6->name : VRF_DEFAULT_NAME;
- json = json_object_from_file(OSPF6D_GR_STATE);
+ json = json_object_from_file((char *)OSPF6D_GR_STATE);
if (json == NULL)
json = json_object_new_object();
json_object_object_del(json_instances, inst_name);
- json_object_to_file_ext(OSPF6D_GR_STATE, json, JSON_C_TO_STRING_PRETTY);
+ json_object_to_file_ext((char *)OSPF6D_GR_STATE, json,
+ JSON_C_TO_STRING_PRETTY);
json_object_free(json);
}