summaryrefslogtreecommitdiff
path: root/ospfd/ospf_lsa.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-10-15 18:32:14 -0400
committerDonald Sharp <sharpd@nvidia.com>2024-10-15 18:32:14 -0400
commit573d807adf17ae979df60f999fa0e8e8e6ff985a (patch)
tree2ca5af194c278cdb8689db5cb972896f58c5554c /ospfd/ospf_lsa.c
parentde02471a8d26938a46f6252b7a6a8065125853e9 (diff)
ospfd: Fixup ospf_lsa.[ch] to properly spell out parameters for functions
Our standard says when in a .h file and declaring a function all parameters must have their variables spelled out. Let's do this for ospf_lsa.h Modified ospf_lsa.c to also use event instead of thread, and uint8_t instead of unsigned short. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospfd/ospf_lsa.c')
-rw-r--r--ospfd/ospf_lsa.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c
index f125fa93b1..a8b8de6d5b 100644
--- a/ospfd/ospf_lsa.c
+++ b/ospfd/ospf_lsa.c
@@ -2613,8 +2613,7 @@ void ospf_external_lsa_refresh_default(struct ospf *ospf)
}
}
-void ospf_external_lsa_refresh_type(struct ospf *ospf, uint8_t type,
- unsigned short instance, int force)
+void ospf_external_lsa_refresh_type(struct ospf *ospf, uint8_t type, uint8_t instance, int force)
{
struct route_node *rn;
struct external_info *ei;
@@ -3170,9 +3169,9 @@ int ospf_check_nbr_status(struct ospf *ospf)
}
-void ospf_maxage_lsa_remover(struct event *thread)
+void ospf_maxage_lsa_remover(struct event *event)
{
- struct ospf *ospf = EVENT_ARG(thread);
+ struct ospf *ospf = EVENT_ARG(event);
struct ospf_lsa *lsa, *old;
struct route_node *rn;
int reschedule = 0;
@@ -3202,7 +3201,7 @@ void ospf_maxage_lsa_remover(struct event *thread)
}
/* TODO: maybe convert this function to a work-queue */
- if (event_should_yield(thread)) {
+ if (event_should_yield(event)) {
OSPF_TIMER_ON(ospf->t_maxage,
ospf_maxage_lsa_remover, 0);
route_unlock_node(
@@ -3418,9 +3417,9 @@ static int ospf_lsa_maxage_walker_remover(struct ospf *ospf,
}
/* Periodical check of MaxAge LSA. */
-void ospf_lsa_maxage_walker(struct event *thread)
+void ospf_lsa_maxage_walker(struct event *event)
{
- struct ospf *ospf = EVENT_ARG(thread);
+ struct ospf *ospf = EVENT_ARG(event);
struct route_node *rn;
struct ospf_lsa *lsa;
struct ospf_area *area;
@@ -4157,11 +4156,11 @@ void ospf_refresher_unregister_lsa(struct ospf *ospf, struct ospf_lsa *lsa)
}
}
-void ospf_lsa_refresh_walker(struct event *t)
+void ospf_lsa_refresh_walker(struct event *e)
{
struct list *refresh_list;
struct listnode *node, *nnode;
- struct ospf *ospf = EVENT_ARG(t);
+ struct ospf *ospf = EVENT_ARG(e);
struct ospf_lsa *lsa;
int i;
struct list *lsa_to_refresh = list_new();