]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Marked unused parameters in sysdep code as such.
authorMartin Mares <mj@ucw.cz>
Sat, 5 Jun 2004 09:11:07 +0000 (09:11 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 5 Jun 2004 09:11:07 +0000 (09:11 +0000)
sysdep/linux/netlink/krt-iface.h
sysdep/linux/netlink/krt-set.h
sysdep/linux/netlink/netlink.c
sysdep/unix/krt-set.h
sysdep/unix/krt.c
sysdep/unix/main.c

index eddfbac507b3bbeecf289c00cebfc75b6e67f086..f44ca27f8f39bf93930896bc6f54085d5f601d32 100644 (file)
@@ -19,10 +19,10 @@ struct krt_if_params {
 struct krt_if_status {
 };
 
-static inline void krt_if_construct(struct kif_config *c) { };
-static inline void krt_if_shutdown(struct kif_proto *p) { };
+static inline void krt_if_construct(struct kif_config *c UNUSED) { };
+static inline void krt_if_shutdown(struct kif_proto *p UNUSED) { };
 static inline void krt_if_io_init(void) { };
 
-static inline int kif_params_same(struct krt_if_params *old, struct krt_if_params *new) { return 1; }
+static inline int kif_params_same(struct krt_if_params *old UNUSED, struct krt_if_params *new UNUSED) { return 1; }
 
 #endif
index 4f35e090252614904a5bdfcfbe051fb094624f9b..83d082d0dcb707d35c20d6c8d27b5d51bb412a5a 100644 (file)
@@ -19,9 +19,9 @@ struct krt_set_params {
 struct krt_set_status {
 };
 
-static inline void krt_set_construct(struct krt_config *c) { };
-static inline void krt_set_start(struct krt_proto *p, int first) { };
-static inline void krt_set_shutdown(struct krt_proto *p, int last) { };
-static inline int krt_set_params_same(struct krt_set_params *o, struct krt_set_params *n) { return 1; }
+static inline void krt_set_construct(struct krt_config *c UNUSED) { };
+static inline void krt_set_start(struct krt_proto *p UNUSED, int first UNUSED) { };
+static inline void krt_set_shutdown(struct krt_proto *p UNUSED, int last UNUSED) { };
+static inline int krt_set_params_same(struct krt_set_params *o UNUSED, struct krt_set_params *n UNUSED) { return 1; }
 
 #endif
index c911642aa12d8ae829c1f324ef0ac92e4ed9f3a4..83e93c9a630650016f2c593b873d11c93b3b0e12 100644 (file)
@@ -409,7 +409,7 @@ nl_parse_addr(struct nlmsghdr *h)
 }
 
 void
-krt_if_scan(struct kif_proto *p)
+krt_if_scan(struct kif_proto *p UNUSED)
 {
   struct nlmsghdr *h;
 
@@ -518,7 +518,7 @@ nl_send_route(struct krt_proto *p, rte *e, int new)
 }
 
 void
-krt_set_notify(struct krt_proto *p, net *n, rte *new, rte *old)
+krt_set_notify(struct krt_proto *p, net *n UNUSED, rte *new, rte *old)
 {
   if (old && new)
     {
@@ -726,7 +726,7 @@ nl_parse_route(struct nlmsghdr *h, int scan)
 }
 
 void
-krt_scan_fire(struct krt_proto *p)     /* CONFIG_ALL_TABLES_AT_ONCE => p is NULL */
+krt_scan_fire(struct krt_proto *p UNUSED)      /* CONFIG_ALL_TABLES_AT_ONCE => p is NULL */
 {
   struct nlmsghdr *h;
 
@@ -771,7 +771,7 @@ nl_async_msg(struct nlmsghdr *h)
 }
 
 static int
-nl_async_hook(sock *sk, int size)
+nl_async_hook(sock *sk, int size UNUSED)
 {
   struct iovec iov = { nl_async_rx_buffer, NL_RX_SIZE };
   struct sockaddr_nl sa;
@@ -871,7 +871,7 @@ nl_open_async(void)
 static u8 nl_cf_table[(NL_NUM_TABLES+7) / 8];
 
 void
-krt_scan_preconfig(struct config *c)
+krt_scan_preconfig(struct config *c UNUSED)
 {
   bzero(&nl_cf_table, sizeof(nl_cf_table));
 }
@@ -909,12 +909,12 @@ krt_scan_start(struct krt_proto *p, int first)
 }
 
 void
-krt_scan_shutdown(struct krt_proto *p, int last)
+krt_scan_shutdown(struct krt_proto *p UNUSED, int last UNUSED)
 {
 }
 
 void
-krt_if_start(struct kif_proto *p)
+krt_if_start(struct kif_proto *p UNUSED)
 {
   nl_open();
   nl_open_async();
index 1c5e15e133aeb780458cf026a78d6d4e7c78237a..5d0b213497254a96b9e6c952442c11dbb152f662 100644 (file)
@@ -15,6 +15,6 @@ struct krt_set_params {
 struct krt_set_status {
 };
 
-static inline int krt_set_params_same(struct krt_set_params *o, struct krt_set_params *n) { return 1; }
+static inline int krt_set_params_same(struct krt_set_params *o UNUSED, struct krt_set_params *n UNUSED) { return 1; }
 
 #endif
index ff688b903ba2bb6ab0a13d4acf4282566f7d5a51..af87fc0295b829c2659b0d4655dcef13284c65d4 100644 (file)
@@ -79,7 +79,7 @@ static timer *kif_scan_timer;
 static bird_clock_t kif_last_shot;
 
 static void
-kif_preconfig(struct protocol *P, struct config *c)
+kif_preconfig(struct protocol *P UNUSED, struct config *c UNUSED)
 {
   cf_kif = NULL;
 }
@@ -646,7 +646,7 @@ krt_got_route_async(struct krt_proto *p, rte *e, int new)
  */
 
 static void
-krt_scan(timer *t)
+krt_scan(timer *t UNUSED)
 {
   struct krt_proto *p;
 
@@ -678,7 +678,7 @@ krt_scan(timer *t)
  */
 
 static void
-krt_notify(struct proto *P, net *net, rte *new, rte *old, struct ea_list *attrs)
+krt_notify(struct proto *P, net *net, rte *new, rte *old, struct ea_list *attrs UNUSED)
 {
   struct krt_proto *p = (struct krt_proto *) P;
 
@@ -703,7 +703,7 @@ krt_notify(struct proto *P, net *net, rte *new, rte *old, struct ea_list *attrs)
 struct proto_config *cf_krt;
 
 static void
-krt_preconfig(struct protocol *P, struct config *c)
+krt_preconfig(struct protocol *P UNUSED, struct config *c)
 {
   cf_krt = NULL;
   krt_scan_preconfig(c);
index be3cf820ac724f2732adcd1622f0c21d205c49f5..ec8802bdd7f201edc34347b5b72dc6d064c2f822 100644 (file)
@@ -81,7 +81,7 @@ sysdep_preconfig(struct config *c)
 }
 
 int
-sysdep_commit(struct config *new, struct config *old)
+sysdep_commit(struct config *new, struct config *old UNUSED)
 {
   log_switch(debug_flag, &new->logfiles);
   return 0;
@@ -223,7 +223,7 @@ cli_get_command(cli *c)
 }
 
 static int
-cli_rx(sock *s, int size)
+cli_rx(sock *s, int size UNUSED)
 {
   cli_kick(s->data);
   return 0;
@@ -252,7 +252,7 @@ cli_err(sock *s, int err)
 }
 
 static int
-cli_connect(sock *s, int size)
+cli_connect(sock *s, int size UNUSED)
 {
   cli *c;
 
@@ -306,21 +306,21 @@ sysdep_shutdown_done(void)
  */
 
 static void
-handle_sighup(int sig)
+handle_sighup(int sig UNUSED)
 {
   DBG("Caught SIGHUP...\n");
   async_config_flag = 1;
 }
 
 static void
-handle_sigusr(int sig)
+handle_sigusr(int sig UNUSED)
 {
   DBG("Caught SIGUSR...\n");
   async_dump_flag = 1;
 }
 
 static void
-handle_sigterm(int sig)
+handle_sigterm(int sig UNUSED)
 {
   DBG("Caught SIGTERM...\n");
   async_shutdown_flag = 1;