diff options
| author | Lou Berger <lberger@labn.net> | 2018-03-06 14:02:52 -0500 | 
|---|---|---|
| committer | Lou Berger <lberger@labn.net> | 2018-03-06 14:04:32 -0500 | 
| commit | 996c93142d3abfab0f6d6c800474e22a8cfbdbc5 (patch) | |
| tree | 2b28846d256c84cf7b7f1a8988fb3267c8611722 /ospfd/ospf_opaque.c | |
| parent | 3380418fa10556ef2c9139d09b9a435db64dc392 (diff) | |
*: conform with COMMUNITY.md formatting rules, via 'make indent'
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'ospfd/ospf_opaque.c')
| -rw-r--r-- | ospfd/ospf_opaque.c | 77 | 
1 files changed, 37 insertions, 40 deletions
diff --git a/ospfd/ospf_opaque.c b/ospfd/ospf_opaque.c index 009fd997ea..6e9cf36a3d 100644 --- a/ospfd/ospf_opaque.c +++ b/ospfd/ospf_opaque.c @@ -610,28 +610,28 @@ static void free_opaque_info_owner(void *val)  {  	struct opaque_info_per_type *oipt = (struct opaque_info_per_type *)val; -        switch (oipt->lsa_type) { -        case OSPF_OPAQUE_LINK_LSA: { -                struct ospf_interface *oi = -                        (struct ospf_interface *)(oipt->owner); -                listnode_delete(oi->opaque_lsa_self, oipt); -                break; -        } -        case OSPF_OPAQUE_AREA_LSA: { -                struct ospf_area *area = (struct ospf_area *)(oipt->owner); -                listnode_delete(area->opaque_lsa_self, oipt); -                break; -        } -        case OSPF_OPAQUE_AS_LSA: { -                struct ospf *top = (struct ospf *)(oipt->owner); -                listnode_delete(top->opaque_lsa_self, oipt); -                break; -        } -        default: -                zlog_warn("free_opaque_info_owner: Unexpected LSA-type(%u)", -                          oipt->lsa_type); -                break; /* This case may not exist. */ -        } +	switch (oipt->lsa_type) { +	case OSPF_OPAQUE_LINK_LSA: { +		struct ospf_interface *oi = +			(struct ospf_interface *)(oipt->owner); +		listnode_delete(oi->opaque_lsa_self, oipt); +		break; +	} +	case OSPF_OPAQUE_AREA_LSA: { +		struct ospf_area *area = (struct ospf_area *)(oipt->owner); +		listnode_delete(area->opaque_lsa_self, oipt); +		break; +	} +	case OSPF_OPAQUE_AS_LSA: { +		struct ospf *top = (struct ospf *)(oipt->owner); +		listnode_delete(top->opaque_lsa_self, oipt); +		break; +	} +	default: +		zlog_warn("free_opaque_info_owner: Unexpected LSA-type(%u)", +			  oipt->lsa_type); +		break; /* This case may not exist. */ +	}  }  static void free_opaque_info_per_type(void *val) @@ -1393,12 +1393,11 @@ void ospf_opaque_lsa_originate_schedule(struct ospf_interface *oi, int *delay0)  			 * list_isempty (oipt->id_list)  			 * not being empty.  			 */ -			if ( -				oipt->t_opaque_lsa_self -					!= NULL /* Waiting for a thread call. */ -				|| oipt->status == PROC_SUSPEND) /* Cannot -								    originate -								    now. */ +			if (oipt->t_opaque_lsa_self +				    != NULL /* Waiting for a thread call. */ +			    || oipt->status == PROC_SUSPEND) /* Cannot +								originate +								now. */  				continue;  			ospf_opaque_lsa_reoriginate_schedule( @@ -1419,12 +1418,11 @@ void ospf_opaque_lsa_originate_schedule(struct ospf_interface *oi, int *delay0)  			 * list_isempty (oipt->id_list)  			 * not being empty.  			 */ -			if ( -				oipt->t_opaque_lsa_self -					!= NULL /* Waiting for a thread call. */ -				|| oipt->status == PROC_SUSPEND) /* Cannot -								    originate -								    now. */ +			if (oipt->t_opaque_lsa_self +				    != NULL /* Waiting for a thread call. */ +			    || oipt->status == PROC_SUSPEND) /* Cannot +								originate +								now. */  				continue;  			ospf_opaque_lsa_reoriginate_schedule( @@ -1445,12 +1443,11 @@ void ospf_opaque_lsa_originate_schedule(struct ospf_interface *oi, int *delay0)  			 * list_isempty (oipt->id_list)  			 * not being empty.  			 */ -			if ( -				oipt->t_opaque_lsa_self -					!= NULL /* Waiting for a thread call. */ -				|| oipt->status == PROC_SUSPEND) /* Cannot -								    originate -								    now. */ +			if (oipt->t_opaque_lsa_self +				    != NULL /* Waiting for a thread call. */ +			    || oipt->status == PROC_SUSPEND) /* Cannot +								originate +								now. */  				continue;  			ospf_opaque_lsa_reoriginate_schedule((void *)top,  | 
