Revision 6578a604

View differences:

sysdep/linux/netlink/krt-iface.h
19 19
struct krt_if_status {
20 20
};
21 21

  
22
static inline void krt_if_construct(struct kif_config *c) { };
23
static inline void krt_if_shutdown(struct kif_proto *p) { };
22
static inline void krt_if_construct(struct kif_config *c UNUSED) { };
23
static inline void krt_if_shutdown(struct kif_proto *p UNUSED) { };
24 24
static inline void krt_if_io_init(void) { };
25 25

  
26
static inline int kif_params_same(struct krt_if_params *old, struct krt_if_params *new) { return 1; }
26
static inline int kif_params_same(struct krt_if_params *old UNUSED, struct krt_if_params *new UNUSED) { return 1; }
27 27

  
28 28
#endif
sysdep/linux/netlink/krt-set.h
19 19
struct krt_set_status {
20 20
};
21 21

  
22
static inline void krt_set_construct(struct krt_config *c) { };
23
static inline void krt_set_start(struct krt_proto *p, int first) { };
24
static inline void krt_set_shutdown(struct krt_proto *p, int last) { };
25
static inline int krt_set_params_same(struct krt_set_params *o, struct krt_set_params *n) { return 1; }
22
static inline void krt_set_construct(struct krt_config *c UNUSED) { };
23
static inline void krt_set_start(struct krt_proto *p UNUSED, int first UNUSED) { };
24
static inline void krt_set_shutdown(struct krt_proto *p UNUSED, int last UNUSED) { };
25
static inline int krt_set_params_same(struct krt_set_params *o UNUSED, struct krt_set_params *n UNUSED) { return 1; }
26 26

  
27 27
#endif
sysdep/linux/netlink/netlink.c
409 409
}
410 410

  
411 411
void
412
krt_if_scan(struct kif_proto *p)
412
krt_if_scan(struct kif_proto *p UNUSED)
413 413
{
414 414
  struct nlmsghdr *h;
415 415

  
......
518 518
}
519 519

  
520 520
void
521
krt_set_notify(struct krt_proto *p, net *n, rte *new, rte *old)
521
krt_set_notify(struct krt_proto *p, net *n UNUSED, rte *new, rte *old)
522 522
{
523 523
  if (old && new)
524 524
    {
......
726 726
}
727 727

  
728 728
void
729
krt_scan_fire(struct krt_proto *p)	/* CONFIG_ALL_TABLES_AT_ONCE => p is NULL */
729
krt_scan_fire(struct krt_proto *p UNUSED)	/* CONFIG_ALL_TABLES_AT_ONCE => p is NULL */
730 730
{
731 731
  struct nlmsghdr *h;
732 732

  
......
771 771
}
772 772

  
773 773
static int
774
nl_async_hook(sock *sk, int size)
774
nl_async_hook(sock *sk, int size UNUSED)
775 775
{
776 776
  struct iovec iov = { nl_async_rx_buffer, NL_RX_SIZE };
777 777
  struct sockaddr_nl sa;
......
871 871
static u8 nl_cf_table[(NL_NUM_TABLES+7) / 8];
872 872

  
873 873
void
874
krt_scan_preconfig(struct config *c)
874
krt_scan_preconfig(struct config *c UNUSED)
875 875
{
876 876
  bzero(&nl_cf_table, sizeof(nl_cf_table));
877 877
}
......
909 909
}
910 910

  
911 911
void
912
krt_scan_shutdown(struct krt_proto *p, int last)
912
krt_scan_shutdown(struct krt_proto *p UNUSED, int last UNUSED)
913 913
{
914 914
}
915 915

  
916 916
void
917
krt_if_start(struct kif_proto *p)
917
krt_if_start(struct kif_proto *p UNUSED)
918 918
{
919 919
  nl_open();
920 920
  nl_open_async();
sysdep/unix/krt-set.h
15 15
struct krt_set_status {
16 16
};
17 17

  
18
static inline int krt_set_params_same(struct krt_set_params *o, struct krt_set_params *n) { return 1; }
18
static inline int krt_set_params_same(struct krt_set_params *o UNUSED, struct krt_set_params *n UNUSED) { return 1; }
19 19

  
20 20
#endif
sysdep/unix/krt.c
79 79
static bird_clock_t kif_last_shot;
80 80

  
81 81
static void
82
kif_preconfig(struct protocol *P, struct config *c)
82
kif_preconfig(struct protocol *P UNUSED, struct config *c UNUSED)
83 83
{
84 84
  cf_kif = NULL;
85 85
}
......
646 646
 */
647 647

  
648 648
static void
649
krt_scan(timer *t)
649
krt_scan(timer *t UNUSED)
650 650
{
651 651
  struct krt_proto *p;
652 652

  
......
678 678
 */
679 679

  
680 680
static void
681
krt_notify(struct proto *P, net *net, rte *new, rte *old, struct ea_list *attrs)
681
krt_notify(struct proto *P, net *net, rte *new, rte *old, struct ea_list *attrs UNUSED)
682 682
{
683 683
  struct krt_proto *p = (struct krt_proto *) P;
684 684

  
......
703 703
struct proto_config *cf_krt;
704 704

  
705 705
static void
706
krt_preconfig(struct protocol *P, struct config *c)
706
krt_preconfig(struct protocol *P UNUSED, struct config *c)
707 707
{
708 708
  cf_krt = NULL;
709 709
  krt_scan_preconfig(c);
sysdep/unix/main.c
81 81
}
82 82

  
83 83
int
84
sysdep_commit(struct config *new, struct config *old)
84
sysdep_commit(struct config *new, struct config *old UNUSED)
85 85
{
86 86
  log_switch(debug_flag, &new->logfiles);
87 87
  return 0;
......
223 223
}
224 224

  
225 225
static int
226
cli_rx(sock *s, int size)
226
cli_rx(sock *s, int size UNUSED)
227 227
{
228 228
  cli_kick(s->data);
229 229
  return 0;
......
252 252
}
253 253

  
254 254
static int
255
cli_connect(sock *s, int size)
255
cli_connect(sock *s, int size UNUSED)
256 256
{
257 257
  cli *c;
258 258

  
......
306 306
 */
307 307

  
308 308
static void
309
handle_sighup(int sig)
309
handle_sighup(int sig UNUSED)
310 310
{
311 311
  DBG("Caught SIGHUP...\n");
312 312
  async_config_flag = 1;
313 313
}
314 314

  
315 315
static void
316
handle_sigusr(int sig)
316
handle_sigusr(int sig UNUSED)
317 317
{
318 318
  DBG("Caught SIGUSR...\n");
319 319
  async_dump_flag = 1;
320 320
}
321 321

  
322 322
static void
323
handle_sigterm(int sig)
323
handle_sigterm(int sig UNUSED)
324 324
{
325 325
  DBG("Caught SIGTERM...\n");
326 326
  async_shutdown_flag = 1;

Also available in: Unified diff