From: Vojtech Vilimek Date: Tue, 2 Aug 2022 14:12:09 +0000 (+0200) Subject: TMP: code cleanup - remove trailing whitespace X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5bdba428b775d1b6691aa791b9e1dd5f4ee1a6b;p=thirdparty%2Fbird.git TMP: code cleanup - remove trailing whitespace --- diff --git a/proto/snmp/bgp_mib.c b/proto/snmp/bgp_mib.c index 09def035c..dae6a945e 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 355ddb2dc..99229521c 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 1943c3a4a..2bf37d58b 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 af395c5ac..5bc81d34f 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' */