]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Marked unused parameters as unused.
authorOndrej Filip <feela@network.cz>
Mon, 7 Jun 2004 09:52:15 +0000 (09:52 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 7 Jun 2004 09:52:15 +0000 (09:52 +0000)
sysdep/bsd/krt-iface.h
sysdep/bsd/krt-scan.h
sysdep/bsd/krt-sock.c
sysdep/bsd/krt-sock.h
sysdep/unix/krt.c

index aa2eb857174fdea8f6c760b9c02efa5bbe1de8e7..7d96fe88ca37103b4f042916f353066a6799169e 100644 (file)
@@ -12,6 +12,6 @@
 /*
  *  We don't have split iface/scan/set parts. See krt-sock.h.
  */
-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 e06f57f3aa96cb77f96afcf39892a011167437f6..284df5ea84c5903fc1cbee13a34745d86f0cf44d 100644 (file)
@@ -16,6 +16,6 @@ struct krt_scan_status {
   list temp_ifs;                       /* Temporary interfaces */
 };
 
-static inline int krt_scan_params_same(struct krt_scan_params *o, struct krt_scan_params *n) { return 1; }
+static inline int krt_scan_params_same(struct krt_scan_params *o UNUSED, struct krt_scan_params *n UNUSED) { return 1; }
 
 #endif
index 7f0db34863cc23f462bfed90354fccbbf0a9c85c..b315d5a35fe28447b84d0b903528a0b99bb16deb 100644 (file)
@@ -203,7 +203,7 @@ krt_sock_send(int cmd, rte *e)
 }
 
 void
-krt_set_notify(struct krt_proto *p, net *net, rte *new, rte *old)
+krt_set_notify(struct krt_proto *p UNUSED, net *net UNUSED, rte *new, rte *old)
 {
   if (old)
     {
@@ -218,7 +218,7 @@ krt_set_notify(struct krt_proto *p, net *net, rte *new, rte *old)
 }
 
 void
-krt_set_start(struct krt_proto *x, int first)
+krt_set_start(struct krt_proto *x, int first UNUSED)
 {
   sock *sk_rt;
   static int ks_open_tried = 0;
@@ -243,7 +243,7 @@ krt_set_start(struct krt_proto *x, int first)
 }
 
 static int
-krt_set_hook(sock *sk, int size)
+krt_set_hook(sock *sk, int size UNUSED)
 {
   struct ks_msg msg;
   int l = read(sk->fd, (char *)&msg, sizeof(msg));
@@ -548,28 +548,28 @@ krt_read_msg(struct proto *p, struct ks_msg *msg, int scan)
 }
 
 void
-krt_scan_construct(struct krt_config *c)
+krt_scan_construct(struct krt_config *c UNUSED)
 {
 }
 
 void
-krt_scan_preconfig(struct config *c)
+krt_scan_preconfig(struct config *c UNUSED)
 {
 }
 
 void
-krt_scan_postconfig(struct krt_config *c)
+krt_scan_postconfig(struct krt_config *c UNUSED)
 {
 }
 
 void
-krt_scan_start(struct krt_proto *x, int first)
+krt_scan_start(struct krt_proto *x, int first UNUSED)
 {
   init_list(&x->scan.temp_ifs);
 }
 
 void
-krt_scan_shutdown(struct krt_proto *x, int last)
+krt_scan_shutdown(struct krt_proto *x UNUSED, int last UNUSED)
 {
 }
 
@@ -639,12 +639,12 @@ krt_if_scan(struct kif_proto *p)
 
 
 void
-krt_set_construct(struct krt_config *c)
+krt_set_construct(struct krt_config *c UNUSED)
 {
 }
 
 void
-krt_set_shutdown(struct krt_proto *x, int last)
+krt_set_shutdown(struct krt_proto *x UNUSED, int last UNUSED)
 {
 } 
 
@@ -654,17 +654,17 @@ krt_if_io_init(void)
 }
 
 void
-krt_if_construct(struct kif_config *c)
+krt_if_construct(struct kif_config *c UNUSED)
 {
 }
 
 void
-krt_if_start(struct kif_proto *p)
+krt_if_start(struct kif_proto *p UNUSED)
 {
 }
 
 void
-krt_if_shutdown(struct kif_proto *p)
+krt_if_shutdown(struct kif_proto *p UNUSED)
 {
 }
 
index 41ff9c5ed6f26a6fe684857dde5e2942f1845c40..c585435172c1547e13ce09bf49d553f66120c2ce 100644 (file)
@@ -41,7 +41,7 @@ struct krt_if_status {
 };
 
 static int krt_set_hook(sock *sk, int size);
-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; }
 void krt_read_msg(struct proto *p, struct ks_msg *msg, int scan);
 
 #endif
index af87fc0295b829c2659b0d4655dcef13284c65d4..989930f37bf5f7afab4eb742a8bb0b8cd1a1dc67 100644 (file)
@@ -495,8 +495,10 @@ krt_got_route(struct krt_proto *p, rte *e)
 {
   rte *old;
   net *net = e->net;
-  int src = e->u.krt.src;
   int verdict;
+#ifdef KRT_ALLOW_LEARN
+  int src = e->u.krt.src;
+#endif
 
 #ifdef CONFIG_AUTO_ROUTES
   if (e->attrs->dest == RTD_DEVICE)
@@ -616,7 +618,11 @@ krt_prune(struct krt_proto *p)
 }
 
 void
-krt_got_route_async(struct krt_proto *p, rte *e, int new)
+krt_got_route_async(struct krt_proto *p, rte *e, int new
+#ifndef KRT_ALLOW_LEARN
+UNUSED
+#endif
+)
 {
   net *net = e->net;
   int src = e->u.krt.src;