Skip to content

Commit baf4c1a

Browse files
authored
Merge pull request FRRouting#18077 from y-bharath14/srib-babeld-code-maintainability
babeld: Improve code clarity and maintainability
2 parents a97be61 + db8e385 commit baf4c1a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

babeld/babeld.c

+8-6
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ resize_receive_buffer(int size)
538538
}
539539

540540
static void
541-
babel_distribute_update (struct distribute_ctx *ctx, struct distribute *dist)
541+
babel_distribute_update (struct distribute_ctx *ctx __attribute__((__unused__)), struct distribute *dist)
542542
{
543543
struct interface *ifp;
544544
babel_interface_nfo *babel_ifp;
@@ -593,7 +593,7 @@ babel_distribute_update_all (struct prefix_list *notused)
593593
}
594594

595595
static void
596-
babel_distribute_update_all_wrapper (struct access_list *notused)
596+
babel_distribute_update_all_wrapper (struct access_list *notused __attribute__((__unused__)))
597597
{
598598
babel_distribute_update_all(NULL);
599599
}
@@ -872,16 +872,18 @@ babeld_quagga_init(void)
872872
/* Stubs to adapt Babel's filtering calls to Quagga's infrastructure. */
873873

874874
int
875-
input_filter(const unsigned char *id,
875+
input_filter(const unsigned char *id __attribute__((__unused__)),
876876
const unsigned char *prefix, unsigned short plen,
877-
const unsigned char *neigh, unsigned int ifindex)
877+
const unsigned char *neigh __attribute__((__unused__)),
878+
unsigned int ifindex)
878879
{
879880
return babel_filter(0, prefix, plen, ifindex);
880881
}
881882

882883
int
883-
output_filter(const unsigned char *id, const unsigned char *prefix,
884-
unsigned short plen, unsigned int ifindex)
884+
output_filter(const unsigned char *id __attribute__((__unused__)),
885+
const unsigned char *prefix, unsigned short plen,
886+
unsigned int ifindex)
885887
{
886888
return babel_filter(1, prefix, plen, ifindex);
887889
}

0 commit comments

Comments
 (0)