diff --git a/proto/snmp/bgp_mib.c b/proto/snmp/bgp_mib.c index 09def035..dae6a945 100644 --- a/proto/snmp/bgp_mib.c +++ b/proto/snmp/bgp_mib.c @@ -125,7 +125,7 @@ snmp_init_bgp_table(void) void snmp_del_bgp_table(void) -{ +{ // XXX really needed ? const oid bgpPeerTable_oid[] = {1,3,6,1,2,1,15,3}; diff --git a/proto/snmp/bgp_mib.h b/proto/snmp/bgp_mib.h index 355ddb2d..99229521 100644 --- a/proto/snmp/bgp_mib.h +++ b/proto/snmp/bgp_mib.h @@ -18,11 +18,11 @@ #define SNMP_BGP_LAST_ERROR 14 /* UNSUPPORTED */ #define SNMP_BGP_FSM_TRANSITIONS 15 /* FSM established transitions */ #define SNMP_BGP_FSM_ESTABLISHED_TIME 16 /* UNSUPPORTED FSM established time */ -#define SNMP_BGP_RETRY_INTERVAL 17 -#define SNMP_BGP_HOLD_TIME 18 -#define SNMP_BGP_KEEPALIVE 19 -#define SNMP_BGP_HOLD_TIME_CONFIGURED 20 -#define SNMP_BGP_KEEPALIVE_CONFIGURED 21 +#define SNMP_BGP_RETRY_INTERVAL 17 +#define SNMP_BGP_HOLD_TIME 18 +#define SNMP_BGP_KEEPALIVE 19 +#define SNMP_BGP_HOLD_TIME_CONFIGURED 20 +#define SNMP_BGP_KEEPALIVE_CONFIGURED 21 #define SNMP_BGP_ORIGINATION_INTERVAL 22 /* UNSUPPORTED */ #define SNMP_BGP_MIN_ROUTE_ADVERTISEMENT 23 /* UNSUPPORTED */ #define SNMP_BGP_MIN_UPDATE_ELAPSED_TIME 24 /* UNSUPPORTED */ diff --git a/proto/snmp/snmp.c b/proto/snmp/snmp.c index 1943c3a4..2bf37d58 100644 --- a/proto/snmp/snmp.c +++ b/proto/snmp/snmp.c @@ -131,7 +131,7 @@ shutdown_multihook(void) void snmp_shutdown_(struct proto *P) { - snmp_stop_subagent(shutdown_multihook); + snmp_stop_subagent(shutdown_multihook); } struct protocol proto_snmp = { diff --git a/proto/snmp/subagent.c b/proto/snmp/subagent.c index af395c5a..5bc81d34 100644 --- a/proto/snmp/subagent.c +++ b/proto/snmp/subagent.c @@ -41,12 +41,12 @@ snmp_start_subagent(void (*hook)(void)) */ /* for Win32 only */ - SOCK_STARTUP; + SOCK_STARTUP; /* init library */ init_agent("bird"); - - if (hook) + + if (hook) hook(); /* used for loading config 'bird-snmp.conf' */