diff options
| author | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:03:14 +0200 | 
|---|---|---|
| committer | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:04:07 +0200 | 
| commit | d62a17aedeb0eebdba98238874bb13d62c48dbf9 (patch) | |
| tree | 3b319b1d61c8b85b4d1f06adf8b844bb8a9b5107 /ospfd/ospf_nsm.h | |
| parent | 888ac268a0077fc9ebd1218cec6ae472af0bfc40 (diff) | |
*: reindentreindent-master-after
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'`
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_nsm.h')
| -rw-r--r-- | ospfd/ospf_nsm.h | 38 | 
1 files changed, 18 insertions, 20 deletions
diff --git a/ospfd/ospf_nsm.h b/ospfd/ospf_nsm.h index 4f363b4e66..dcfba84d8b 100644 --- a/ospfd/ospf_nsm.h +++ b/ospfd/ospf_nsm.h @@ -59,33 +59,31 @@  #define OSPF_NSM_TIMER_ON(T,F,V) thread_add_timer (master, (F), nbr, (V), &(T))  /* Macro for OSPF NSM timer turn off. */ -#define OSPF_NSM_TIMER_OFF(X)                                                 \ -      do {                                                                    \ -        if (X)                                                                \ -          {                                                                   \ -            thread_cancel (X);                                                \ -            (X) = NULL;                                                       \ -          }                                                                   \ -      } while (0) +#define OSPF_NSM_TIMER_OFF(X)                                                  \ +	do {                                                                   \ +		if (X) {                                                       \ +			thread_cancel(X);                                      \ +			(X) = NULL;                                            \ +		}                                                              \ +	} while (0)  /* Macro for OSPF NSM schedule event. */ -#define OSPF_NSM_EVENT_SCHEDULE(N,E)                                          \ -      thread_add_event (master, ospf_nsm_event, (N), (E), NULL) +#define OSPF_NSM_EVENT_SCHEDULE(N, E)                                          \ +	thread_add_event(master, ospf_nsm_event, (N), (E), NULL)  /* Macro for OSPF NSM execute event. */ -#define OSPF_NSM_EVENT_EXECUTE(N,E)                                           \ -      thread_execute (master, ospf_nsm_event, (N), (E)) +#define OSPF_NSM_EVENT_EXECUTE(N, E)                                           \ +	thread_execute(master, ospf_nsm_event, (N), (E))  /* Prototypes. */ -extern int ospf_nsm_event (struct thread *); -extern void ospf_check_nbr_loading (struct ospf_neighbor *); -extern int ospf_db_summary_isempty (struct ospf_neighbor *); -extern int ospf_db_summary_count (struct ospf_neighbor *); -extern void ospf_db_summary_clear (struct ospf_neighbor *); +extern int ospf_nsm_event(struct thread *); +extern void ospf_check_nbr_loading(struct ospf_neighbor *); +extern int ospf_db_summary_isempty(struct ospf_neighbor *); +extern int ospf_db_summary_count(struct ospf_neighbor *); +extern void ospf_db_summary_clear(struct ospf_neighbor *);  DECLARE_HOOK(ospf_nsm_change, -		(struct ospf_neighbor *on, int state, int oldstate), -		(on, state, oldstate)) +	     (struct ospf_neighbor * on, int state, int oldstate), +	     (on, state, oldstate))  #endif /* _ZEBRA_OSPF_NSM_H */ -  | 
