[asterisk-commits] rmudgett: branch rmudgett/misdn_facility r184271 - in /team/rmudgett/misdn_fa...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 25 13:59:22 CDT 2009


Author: rmudgett
Date: Wed Mar 25 13:00:58 2009
New Revision: 184271

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=184271
Log:
Remove unnecessary whitespace and block ending comments.

Modified:
    team/rmudgett/misdn_facility/channels/chan_misdn.c
    team/rmudgett/misdn_facility/channels/misdn/ie.c
    team/rmudgett/misdn_facility/channels/misdn/isdn_lib.c
    team/rmudgett/misdn_facility/channels/misdn/isdn_msg_parser.c

Modified: team/rmudgett/misdn_facility/channels/chan_misdn.c
URL: http://svn.digium.com/svn-view/asterisk/team/rmudgett/misdn_facility/channels/chan_misdn.c?view=diff&rev=184271&r1=184270&r2=184271
==============================================================================
--- team/rmudgett/misdn_facility/channels/chan_misdn.c (original)
+++ team/rmudgett/misdn_facility/channels/chan_misdn.c Wed Mar 25 13:00:58 2009
@@ -784,13 +784,9 @@
 	}
 
 	return peer;
-}	/* end misdn_peer_link_get() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -816,7 +812,7 @@
 			&& MISDN_PEER_AGE_MAX < now - misdn_peers[index].time_created) {
 			misdn_peers[index].peer = NULL;
 		}
-	}	/* end for */
+	}
 
 	/* Allocate a peer_id */
 	peer_id = -1;
@@ -827,17 +823,13 @@
 			peer_id = index;
 			break;
 		}
-	}	/* end for */
+	}
 	ast_mutex_unlock(&misdn_peer_link_lock);
 
 	return peer_id;
-}	/* end misdn_peer_link_new() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -859,16 +851,12 @@
 			/* Found the record */
 			break;
 		}
-	}	/* end for */
+	}
 
 	return current;
-}	/* end misdn_cc_find_by_id() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -893,16 +881,12 @@
 			/* Found the record */
 			break;
 		}
-	}	/* end for */
+	}
 
 	return current;
-}	/* end misdn_cc_find_by_linkage() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -927,16 +911,12 @@
 			/* Found the record */
 			break;
 		}
-	}	/* end for */
+	}
 
 	return current;
-}	/* end misdn_cc_find_by_invoke() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -962,16 +942,12 @@
 			/* Found the record */
 			break;
 		}
-	}	/* end for */
+	}
 
 	return current;
-}	/* end misdn_cc_find_by_reference() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -995,19 +971,15 @@
 				/* Found the record */
 				break;
 			}
-		}	/* end for */
+		}
 	} else {
 		current = NULL;
 	}
 
 	return current;
-}	/* end misdn_cc_find_by_bc() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1032,16 +1004,12 @@
 			return;
 		}
 		prev = &current->next;
-	}	/* end for */
+	}
 
 	/* The doomed node is not in the call completion database */
-}	/* end misdn_cc_delete() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1076,14 +1044,10 @@
 			prev = &current->next;
 			current = current->next;
 		}
-	}	/* end for */
-}	/* end misdn_cc_remove_old() */
+	}
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1112,16 +1076,12 @@
 			record_id = -1;
 			break;
 		}
-	}	/* end while */
+	}
 
 	return record_id;
-}	/* end misdn_cc_record_id_new() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1161,13 +1121,9 @@
 		misdn_cc_records = cc_record;
 	}
 	return cc_record;
-}	/* end misdn_cc_new() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1180,14 +1136,10 @@
 	ast_mutex_destroy(&misdn_cc_record_lock);
 	while (misdn_cc_records) {
 		misdn_cc_delete(misdn_cc_records);
-	}	/* end while */
-}	/* end misdn_cc_destroy() */
+	}
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1200,13 +1152,9 @@
 	misdn_cc_records = NULL;
 	misdn_cc_record_id = 0;
 	ast_mutex_init(&misdn_cc_record_lock);
-}	/* end misdn_cc_init() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1237,13 +1185,9 @@
 	ast_mutex_unlock(&misdn_cc_record_lock);
 
 	return not_responded;
-}	/* end misdn_cc_response_check() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1266,14 +1210,10 @@
 			/* We got hung up or our response came in. */
 			break;
 		}
-	}	/* end for */
-}	/* end misdn_cc_response_wait() */
+	}
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1324,16 +1264,12 @@
 		if (arr[index].code == code) {
 			return arr[index].name;
 		}
-	}	/* end for */
+	}
 
 	return "unknown";
-}	/* end misdn_to_str_reject_code() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1396,16 +1332,12 @@
 		if (arr[index].code == code) {
 			return arr[index].name;
 		}
-	}	/* end for */
+	}
 
 	return "unknown";
-}	/* end misdn_to_str_error_code() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1432,16 +1364,12 @@
 	default:
 		diversion_reason = 0;/* unknown */
 		break;
-	}	/* end switch */
+	}
 
 	return diversion_reason;
-}	/* end misdn_to_diversion_reason() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1468,16 +1396,12 @@
 	default:
 		reason = mISDN_REDIRECTING_REASON_UNKNOWN;
 		break;
-	}	/* end switch */
+	}
 
 	return reason;
-}	/* end diversion_reason_to_misdn() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1510,16 +1434,12 @@
 	default:
 		type = 2;/* numberNotAvailableDueToInterworking */
 		break;
-	}	/* end switch */
+	}
 
 	return type;
-}	/* end misdn_to_PresentedNumberUnscreened_type() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1547,16 +1467,12 @@
 	case 2:/* numberNotAvailableDueToInterworking */
 		presentation = 2;/* unavailable */
 		break;
-	}	/* end switch */
+	}
 
 	return presentation;
-}	/* end PresentedNumberUnscreened_to_misdn_pres() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1595,16 +1511,12 @@
 	case NUMPLAN_PRIVATE:
 		party_plan = 5;/* private */
 		break;
-	}	/* end switch */
+	}
 
 	return party_plan;
-}	/* end misdn_to_PartyNumber_plan() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1638,16 +1550,12 @@
 	case 5:/* private */
 		number_plan = NUMPLAN_PRIVATE;
 		break;
-	}	/* end switch */
+	}
 
 	return number_plan;
-}	/* end PartyNumber_to_misdn_plan() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1686,16 +1594,12 @@
 	case NUMTYPE_ABBREVIATED:
 		party_ton = 6;/* abbreviatedNumber */
 		break;
-	}	/* end switch */
+	}
 
 	return party_ton;
-}	/* end misdn_to_PartyNumber_ton_public() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1734,16 +1638,12 @@
 	case 6:/* abbreviatedNumber */
 		ton = NUMTYPE_ABBREVIATED;
 		break;
-	}	/* end switch */
+	}
 
 	return ton;
-}	/* end PartyNumber_to_misdn_ton_public() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1782,16 +1682,12 @@
 	case NUMTYPE_ABBREVIATED:
 		party_ton = 6;/* abbreviatedNumber */
 		break;
-	}	/* end switch */
+	}
 
 	return party_ton;
-}	/* end misdn_to_PartyNumber_ton_private() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -1830,16 +1726,12 @@
 	case 6:/* abbreviatedNumber */
 		ton = NUMTYPE_ABBREVIATED;
 		break;
-	}	/* end switch */
+	}
 
 	return ton;
-}	/* end PartyNumber_to_misdn_ton_private() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 /*!
  * \internal
  * \brief Convert the mISDN type of number code to a string
@@ -2402,10 +2294,6 @@
 	return "Unknown Bearer";
 }
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -2431,14 +2319,10 @@
 	default:
 		party->TypeOfNumber = 0;/* Dont't care */
 		break;
-	}	/* end switch */
-}	/* end misdn_PartyNumber_fill() */
+	}
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -2464,20 +2348,16 @@
 		default:
 			id->number_type = NUMTYPE_UNKNOWN;
 			break;
-		}	/* end switch */
+		}
 	} else {
 		/* Number not present */
 		id->number_type = NUMTYPE_UNKNOWN;
 		id->number_plan = NUMPLAN_ISDN;
 		id->number[0] = 0;
 	}
-}	/* end misdn_PartyNumber_extract() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -2494,13 +2374,9 @@
 
 	/* Subaddresses are not supported yet */
 	Address->Subaddress.Length = 0;
-}	/* end misdn_Address_fill() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -2515,13 +2391,9 @@
 {
 	presented->Type = misdn_to_PresentedNumberUnscreened_type(id->presentation, id->number[0] ? 1 : 0);
 	misdn_PartyNumber_fill(&presented->Unscreened, id);
-}	/* end misdn_PresentedNumberUnscreened_fill() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -2537,17 +2409,13 @@
 	id->presentation = PresentedNumberUnscreened_to_misdn_pres(presented->Type);
 	id->screening = 0;/* unscreened */
 	misdn_PartyNumber_extract(id, &presented->Unscreened);
-}	/* end misdn_PresentedNumberUnscreened_extract() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
-
-
-
 
 #if defined(AST_MISDN_ENHANCEMENTS)
 static const char Level_Spacing[] = "          ";/* Work for up to 10 levels */
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 static void print_facility_PartyNumber(unsigned Level, const struct FacPartyNumber *Party, const struct misdn_bchannel *bc)
 {
@@ -2588,15 +2456,11 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
-	}
-}	/* end print_facility_PartyNumber() */
+		}
+	}
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 static void print_facility_Subaddress(unsigned Level, const struct FacPartySubaddress *Subaddress, const struct misdn_bchannel *bc)
 {
@@ -2622,27 +2486,19 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
-	}
-}	/* end print_facility_Subaddress() */
+		}
+	}
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 static void print_facility_Address(unsigned Level, const struct FacAddress *Address, const struct misdn_bchannel *bc)
 {
 	print_facility_PartyNumber(Level, &Address->Party, bc);
 	print_facility_Subaddress(Level, &Address->Subaddress, bc);
-}	/* end print_facility_Address() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 static void print_facility_PresentedNumberUnscreened(unsigned Level, const struct FacPresentedNumberUnscreened *Presented, const struct misdn_bchannel *bc)
 {
@@ -2667,14 +2523,10 @@
 		break;
 	default:
 		break;
-	}	/* end switch */
-}	/* end print_facility_PresentedNumberUnscreened() */
+	}
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 static void print_facility_AddressScreened(unsigned Level, const struct FacAddressScreened *Address, const struct misdn_bchannel *bc)
 {
@@ -2684,13 +2536,9 @@
 	chan_misdn_log(1, bc->port, " -->%s ScreeningIndicator:%d\n", Spacing, Address->ScreeningIndicator);
 	print_facility_PartyNumber(Level, &Address->Party, bc);
 	print_facility_Subaddress(Level, &Address->Subaddress, bc);
-}	/* end print_facility_AddressScreened() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 static void print_facility_PresentedAddressScreened(unsigned Level, const struct FacPresentedAddressScreened *Presented, const struct misdn_bchannel *bc)
 {
@@ -2715,14 +2563,10 @@
 		break;
 	default:
 		break;
-	}	/* end switch */
-}	/* end print_facility_PresentedAddressScreened() */
+	}
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 static void print_facility_Q931_Bc_Hlc_Llc(unsigned Level, const struct Q931_Bc_Hlc_Llc *Q931ie, const struct misdn_bchannel *bc)
 {
@@ -2739,13 +2583,9 @@
 	if (Q931ie->Llc.Length) {
 		chan_misdn_log(1, bc->port, " -->%s  Llc Len:%d\n", Spacing, Q931ie->Llc.Length);
 	}
-}	/* end print_facility_Q931_Bc_Hlc_Llc() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 static void print_facility_Q931_Bc_Hlc_Llc_Uu(unsigned Level, const struct Q931_Bc_Hlc_Llc_Uu *Q931ie, const struct misdn_bchannel *bc)
 {
@@ -2765,13 +2605,9 @@
 	if (Q931ie->UserInfo.Length) {
 		chan_misdn_log(1, bc->port, " -->%s  UserInfo Len:%d\n", Spacing, Q931ie->UserInfo.Length);
 	}
-}	/* end print_facility_Q931_Bc_Hlc_Llc_Uu() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 static void print_facility_CallInformation(unsigned Level, const struct FacCallInformation *CallInfo, const struct misdn_bchannel *bc)
 {
@@ -2787,13 +2623,9 @@
 		chan_misdn_log(1, bc->port, " -->%s SubaddressOfA:\n", Spacing);
 		print_facility_Subaddress(Level + 1, &CallInfo->SubaddressOfA, bc);
 	}
-}	/* end print_facility_CallInformation() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 static void print_facility_ServedUserNr(unsigned Level, const struct FacPartyNumber *Party, const struct misdn_bchannel *bc)
 {
@@ -2805,13 +2637,9 @@
 	} else {
 		chan_misdn_log(1, bc->port, " -->%s All Numbers\n", Spacing);
 	}
-}	/* end print_facility_ServedUserNr() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 static void print_facility_IntResult(unsigned Level, const struct FacForwardingRecord *ForwardingRecord, const struct misdn_bchannel *bc)
 {
@@ -2826,11 +2654,8 @@
 	print_facility_Address(Level + 1, &ForwardingRecord->ForwardedTo, bc);
 	chan_misdn_log(1, bc->port, " -->%s ServedUserNr:\n", Spacing);
 	print_facility_ServedUserNr(Level + 1, &ForwardingRecord->ServedUser, bc);
-}	/* end print_facility_IntResult() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
-
-
-
 
 static void print_facility(const struct FacParm *fac, const const struct misdn_bchannel *bc)
 {
@@ -2858,7 +2683,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_DeactivationDiversion:
 		chan_misdn_log(1, bc->port, " --> DeactivationDiversion: InvokeID:%d\n",
@@ -2876,7 +2701,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_ActivationStatusNotificationDiv:
 		chan_misdn_log(1, bc->port, " --> ActivationStatusNotificationDiv: InvokeID:%d Procedure:%d BasicService:%d\n",
@@ -2913,12 +2738,12 @@
 				for (Index = 0; Index < fac->u.InterrogationDiversion.Component.Result.NumRecords; ++Index) {
 					chan_misdn_log(1, bc->port, " -->   IntResult[%d]:\n", Index);
 					print_facility_IntResult(3, &fac->u.InterrogationDiversion.Component.Result.List[Index], bc);
-				}	/* end for */
+				}
 			}
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_DiversionInformation:
 		chan_misdn_log(1, bc->port, " --> DiversionInformation: InvokeID:%d Reason:%d BasicService:%d\n",
@@ -2966,7 +2791,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CallRerouteing:
 		chan_misdn_log(1, bc->port, " --> CallRerouteing: InvokeID:%d\n",
@@ -2993,7 +2818,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_InterrogateServedUserNumbers:
 		chan_misdn_log(1, bc->port, " --> InterrogateServedUserNumbers: InvokeID:%d\n",
@@ -3008,12 +2833,12 @@
 				for (Index = 0; Index < fac->u.InterrogateServedUserNumbers.Component.Result.NumRecords; ++Index) {
 					chan_misdn_log(1, bc->port, " -->   ServedUserNr[%d]:\n", Index);
 					print_facility_PartyNumber(3, &fac->u.InterrogateServedUserNumbers.Component.Result.List[Index], bc);
-				}	/* end for */
+				}
 			}
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_DivertingLegInformation1:
 		chan_misdn_log(1, bc->port, " --> DivertingLegInformation1: InvokeID:%d Reason:%d SubscriptionOption:%d\n",
@@ -3129,7 +2954,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_EctInform:
 		chan_misdn_log(1, bc->port, " --> EctInform: InvokeID:%d Status:%d\n",
@@ -3154,7 +2979,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_StatusRequest:
 		chan_misdn_log(1, bc->port, " --> StatusRequest: InvokeID:%d\n",
@@ -3170,7 +2995,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CallInfoRetain:
 		chan_misdn_log(1, bc->port, " --> CallInfoRetain: InvokeID:%d, LinkageID:%d\n",
@@ -3189,7 +3014,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CCBSErase:
 		chan_misdn_log(1, bc->port, " --> CCBSErase: InvokeID:%d, CCBSReference:%d RecallMode:%d, Reason:%d\n",
@@ -3227,7 +3052,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CCBSBFree:
 		chan_misdn_log(1, bc->port, " --> CCBSBFree: InvokeID:%d, CCBSReference:%d RecallMode:%d\n",
@@ -3260,7 +3085,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CCBSInterrogate:
 		chan_misdn_log(1, bc->port, " --> CCBSInterrogate: InvokeID:%d\n",
@@ -3284,12 +3109,12 @@
 				for (Index = 0; Index < fac->u.CCBSInterrogate.Component.Result.NumRecords; ++Index) {
 					chan_misdn_log(1, bc->port, " -->   CallDetails[%d]:\n", Index);
 					print_facility_CallInformation(3, &fac->u.CCBSInterrogate.Component.Result.CallDetails[Index], bc);
-				}	/* end for */
+				}
 			}
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CCNRRequest:
 		chan_misdn_log(1, bc->port, " --> CCNRRequest: InvokeID:%d\n",
@@ -3306,7 +3131,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CCNRInterrogate:
 		chan_misdn_log(1, bc->port, " --> CCNRInterrogate: InvokeID:%d\n",
@@ -3330,12 +3155,12 @@
 				for (Index = 0; Index < fac->u.CCNRInterrogate.Component.Result.NumRecords; ++Index) {
 					chan_misdn_log(1, bc->port, " -->   CallDetails[%d]:\n", Index);
 					print_facility_CallInformation(3, &fac->u.CCNRInterrogate.Component.Result.CallDetails[Index], bc);
-				}	/* end for */
+				}
 			}
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CCBS_T_Call:
 		chan_misdn_log(1, bc->port, " --> CCBS_T_Call: InvokeID:%d\n",
@@ -3384,7 +3209,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CCNR_T_Request:
 		chan_misdn_log(1, bc->port, " --> CCNR_T_Request: InvokeID:%d\n",
@@ -3413,7 +3238,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		break;
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 	case Fac_None:
@@ -3422,7 +3247,7 @@
 	default:
 		chan_misdn_log(1, bc->port, " --> unknown facility\n");
 		break;
-	}	/* end switch */
+	}
 }
 
 static void print_bearer(struct misdn_bchannel *bc)
@@ -3637,7 +3462,7 @@
 	pthread_create(&misdn_tasks_thread, NULL, misdn_tasks_thread_func, &blocker);
 
 	while (sem_wait(&blocker) && --i) {
-	}	/* end while */
+	}
 	sem_destroy(&blocker);
 }
 
@@ -5435,7 +5260,7 @@
 				print_facility(&bc->fac_out, bc);
 				misdn_lib_send_event(bc, EVENT_FACILITY);
 				sleep(1);
-			}	/* end for */
+			}
 		} else {
 			msg_number = atoi(a->argv[5]);
 			if (msg_number < ARRAY_LEN(Fac_Msgs)) {
@@ -6101,12 +5926,8 @@
 		| misdn_to_ast_screen(id->screening);
 	connected.source = source;
 	ast_channel_queue_connected_line_update(ast, &connected);
-}	/* end misdn_queue_connected_line_update() */
-
-
-
-
-/* ******************************************************************* */
+}
+
 /*!
  * \internal
  * \brief Get the connected line information out of the Asterisk channel.
@@ -6241,13 +6062,9 @@
 		break;
 	default:
 		break;
-	}	/* end switch */
-}
-
-
-
-
-/* ******************************************************************* */
+	}
+}
+
 /*!
  * \internal
  * \brief Copy the redirecting information out of the Asterisk channel
@@ -6277,10 +6094,6 @@
 	bc->redirecting.count = ast->redirecting.count;
 }
 
-
-
-
-/* ******************************************************************* */
 /*!
  * \internal
  * \brief Copy the redirecting info into the Asterisk channel
@@ -6316,12 +6129,8 @@
 	redirecting.count = redirect->count;
 
 	ast_channel_set_redirecting(ast, &redirecting);
-}	/* end misdn_copy_redirecting_to_ast() */
-
-
-
-
-/* ******************************************************************* */
+}
+
 /*!
  * \internal
  * \brief Notify peer that the redirecting information has changed.
@@ -6365,8 +6174,7 @@
 		misdn_lib_send_event(bc, EVENT_FACILITY);
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 	}
-}	/* end misdn_update_redirecting() */
-
+}
 
 
 /*****************************/
@@ -8210,8 +8018,7 @@
 	ast_free(ch);
 
 	ast_mutex_unlock(&release_lock);
-}	/* end release_chan() */
-
+}
 
 static void misdn_transfer_bc(struct chan_list *tmp_ch, struct chan_list *holded_chan)
 {
@@ -8463,10 +8270,6 @@
 	}
 }
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -8509,14 +8312,10 @@
 	default:
 		chan_misdn_log(0, port, " --> not yet handled: facility type:0x%04X\n", facility->Function);
 		break;
-	}	/* end switch */
-}	/* end misdn_cc_handle_ccbs_status_request() */
+	}
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -8555,13 +8354,9 @@
 	} else {
 		ast_verb(1, "Started pbx for call completion notify channel %s\n", chan->name);
 	}
-}	/* end misdn_cc_pbx_notify() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -8600,13 +8395,9 @@
 	} else {
 		ast_mutex_unlock(&misdn_cc_record_lock);
 	}
-}	/* end misdn_cc_handle_T_remote_user_free() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -8633,13 +8424,9 @@
 	} else {
 		ast_mutex_unlock(&misdn_cc_record_lock);
 	}
-}	/* end misdn_cc_handle_remote_user_free() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -8667,13 +8454,9 @@
 	} else {
 		ast_mutex_unlock(&misdn_cc_record_lock);
 	}
-}	/* end misdn_cc_handle_b_free() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 /*!
  * \internal
  * \brief Handle the incoming facility ie contents
@@ -8707,7 +8490,7 @@
 			chan_misdn_log(0, bc->port," --> not yet handled: facility type:0x%04X\n",
 				bc->fac_in.Function);
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_DeactivationDiversion:
 		switch (bc->fac_in.u.DeactivationDiversion.ComponentType) {
@@ -8719,7 +8502,7 @@
 			chan_misdn_log(0, bc->port," --> not yet handled: facility type:0x%04X\n",
 				bc->fac_in.Function);
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_ActivationStatusNotificationDiv:
 		/* Sent to other MSN numbers on the line when a user activates call forwarding. */
@@ -8799,7 +8582,7 @@
 
 			default:
 				break;
-			}	/* end switch */
+			}
 		}
 		break;
 #if 0	/* We don't handle this yet */
@@ -8858,7 +8641,7 @@
 			chan_misdn_log(0, bc->port," --> Expected in a SETUP message: facility type:0x%04X\n",
 				bc->fac_in.Function);
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_DivertingLegInformation3:
 		/* Private-Public ISDN interworking message */
@@ -8932,7 +8715,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		ast_mutex_lock(&misdn_cc_record_lock);
 		cc_record = misdn_cc_find_by_invoke(bc->port, bc->fac_in.u.ERROR.invokeId);
 		if (cc_record) {
@@ -8955,7 +8738,7 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
+		}
 		if (bc->fac_in.u.REJECT.InvokeIDPresent) {
 			ast_mutex_lock(&misdn_cc_record_lock);
 			cc_record = misdn_cc_find_by_invoke(bc->port, bc->fac_in.u.REJECT.InvokeID);
@@ -9113,7 +8896,7 @@
 				" --> Expected in a DISCONNECT or ALERTING message: facility type:0x%04X\n",
 				bc->fac_in.Function);
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CCBS_T_Call:
 	case Fac_CCBSCall:
@@ -9128,7 +8911,7 @@
 			chan_misdn_log(0, bc->port, " --> Expected in a SETUP message: facility type:0x%04X\n",
 				bc->fac_in.Function);
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CCBSDeactivate:
 		switch (bc->fac_in.u.CCBSDeactivate.ComponentType) {
@@ -9145,7 +8928,7 @@
 			chan_misdn_log(0, bc->port, " --> not yet handled: facility type:0x%04X\n",
 				bc->fac_in.Function);
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CCBSErase:
 		ast_mutex_lock(&misdn_cc_record_lock);
@@ -9200,7 +8983,7 @@
 			chan_misdn_log(0, bc->port, " --> not yet handled: facility type:0x%04X\n",
 				bc->fac_in.Function);
 			break;
-		}	/* end switch */
+		}
 		break;
 #if 0	/* We don't handle this yet */
 	case Fac_CCBSInterrogate:
@@ -9326,7 +9109,7 @@
 				" --> Expected in a DISCONNECT or ALERTING message: facility type:0x%04X\n",
 				bc->fac_in.Function);
 			break;
-		}	/* end switch */
+		}
 		break;
 	case Fac_CCBS_T_Request:
 	case Fac_CCNR_T_Request:
@@ -9352,7 +9135,7 @@
 			chan_misdn_log(0, bc->port, " --> not yet handled: facility type:0x%04X\n",
 				bc->fac_in.Function);
 			break;
-		}	/* end switch */
+		}
 		break;
 
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
@@ -9362,10 +9145,8 @@
 		chan_misdn_log(0, bc->port, " --> not yet handled: facility type:0x%04X\n",
 			bc->fac_in.Function);
 		break;
-	}	/* end switch */
-}	/* end misdn_facility_ie_handler() */
-
-
+	}
+}
 
 /************************************************************/
 /*  Receive Events from isdn_lib  here                     */
@@ -10390,7 +10171,7 @@
 						/* Call is deflecting for call forwarding unconditional or busy reason. */
 						bc->redirecting.reason = mISDN_REDIRECTING_REASON_UNKNOWN;
 						break;
-					}	/* end switch */
+					}
 					misdn_copy_redirecting_to_ast(ch->ast, &bc->redirecting);
 					ast_channel_queue_redirecting_update(ch->ast, &ch->ast->redirecting);
 				}
@@ -10419,7 +10200,7 @@
 			chan_misdn_log(0, bc->port," --> not yet handled: notify code:0x%02X\n",
 				bc->notify_description_code);
 			break;
-		}	/* end switch */
+		}
 		break;
 	case EVENT_FACILITY:
 		if (bc->fac_in.Function == Fac_None) {
@@ -10445,10 +10226,6 @@
 
 /** TE STUFF END **/
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -10552,11 +10329,8 @@
 	ast_mutex_unlock(&misdn_cc_record_lock);
 
 	return 0;
-}	/* end misdn_cc_read() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
-
-
-
 
 #if defined(AST_MISDN_ENHANCEMENTS)
 static struct ast_custom_function misdn_cc_function = {
@@ -10836,9 +10610,6 @@
 
 /*** SOME APPS ;)***/
 
-
-
-
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
 * \brief misdn_command arguments container.
@@ -10849,7 +10620,6 @@
 );
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -10876,13 +10646,9 @@
 	pbx_builtin_setvar_helper(chan, "_" MISDN_CC_PEER_ID, buf);
 
 	return 0;
-}	/* end misdn_command_cc_initialize() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -10978,13 +10744,9 @@
 	}
 
 	return 0;
-}	/* end misdn_command_cc_deactivate() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -11052,13 +10814,9 @@
 	ast_mutex_unlock(&misdn_cc_record_lock);
 
 	return 0;
-}	/* end misdn_command_cc_a_busy() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -11091,7 +10849,7 @@
 			ast_log(LOG_WARNING, cmd_help, misdn_command_name, subcommand->name);
 			return -1;
 		}
-	}	/* end for */
+	}
 
 	/* These must be numeric */
 	if (!isdigit(*subcommand->arg[0]) || !isdigit(*subcommand->arg[3])) {
@@ -11115,11 +10873,8 @@
 	ast_mutex_unlock(&misdn_cc_record_lock);
 
 	return 0;
-}	/* end misdn_command_cc_b_free() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
-
-
-
 
 #if defined(AST_MISDN_ENHANCEMENTS)
 struct misdn_cc_request {
@@ -11128,7 +10883,6 @@
 };
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -11168,7 +10922,7 @@
 			ast_log(LOG_WARNING, cmd_help, misdn_command_name, subcommand->name);
 			return -1;
 		}
-	}	/* end for */
+	}
 
 	/* These must be numeric */
 	if (!isdigit(*subcommand->arg[0]) || !isdigit(*subcommand->arg[3])) {
@@ -11313,13 +11067,9 @@
 	}
 
 	return 0;
-}	/* end misdn_command_cc_request() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -11343,13 +11093,9 @@
 	};
 
 	return misdn_command_cc_request(chan, subcommand, &request);
-}	/* end misdn_command_ccbs_request() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -11373,16 +11119,8 @@
 	};
 
 	return misdn_command_cc_request(chan, subcommand, &request);
-}	/* end misdn_command_ccnr_request() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
-
-
-
-
-/* ******************************************************************* */
-
-
-
 
 #if defined(AST_MISDN_ENHANCEMENTS)
 struct misdn_command_table {
@@ -11408,10 +11146,6 @@
 };
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 
-
-
-
-/* ******************************************************************* */
 #if defined(AST_MISDN_ENHANCEMENTS)
 /*!
  * \internal
@@ -11455,16 +11189,13 @@
 			}
 			return misdn_commands[index].func(chan, &subcommand);
 		}
-	}	/* end for */
+	}
 
 	ast_log(LOG_WARNING, "%s(%s) subcommand is unknown\n", misdn_command_name,
 		subcommand.name);
 	return -1;
-}	/* end misdn_command_exec() */
+}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
-
-
-
 
 static int misdn_facility_exec(struct ast_channel *chan, void *data)
 {
@@ -11803,8 +11534,8 @@
 			break;
 		default:
 			break;
-		}	/* end switch */
-	}	/* end for */
+		}
+	}
 
 	if (change_jitter) {
 		config_jitterbuffer(ch);

Modified: team/rmudgett/misdn_facility/channels/misdn/ie.c
URL: http://svn.digium.com/svn-view/asterisk/team/rmudgett/misdn_facility/channels/misdn/ie.c?view=diff&rev=184271&r1=184270&r2=184271
==============================================================================
--- team/rmudgett/misdn_facility/channels/misdn/ie.c (original)
+++ team/rmudgett/misdn_facility/channels/misdn/ie.c Wed Mar 25 13:00:58 2009
@@ -1338,7 +1338,7 @@
 
 		for (i = 0; i < user_len; ++i) {
 			sprintf(debug + (i * 3), " %02x", user[i]);
-		}	/* end for */
+		}
 		debug[i * 3] = 0;
 		printf("    protocol=%d user-user%s\n", protocol, debug);
 	}
@@ -1383,7 +1383,7 @@
 
 		for (i = 0; i < *user_len; ++i) {
 			sprintf(debug + (i * 3), " %02x", user[i]);
-		}	/* end for */
+		}
 		debug[i * 3] = 0;
 		printf("    protocol=%d user-user%s\n", *protocol, debug);
 	}

Modified: team/rmudgett/misdn_facility/channels/misdn/isdn_lib.c
URL: http://svn.digium.com/svn-view/asterisk/team/rmudgett/misdn_facility/channels/misdn/isdn_lib.c?view=diff&rev=184271&r1=184270&r2=184271
==============================================================================
--- team/rmudgett/misdn_facility/channels/misdn/isdn_lib.c (original)
+++ team/rmudgett/misdn_facility/channels/misdn/isdn_lib.c Wed Mar 25 13:00:58 2009
@@ -477,14 +477,14 @@
 	for (i = 0; i <= stack->b_num; ++i) {
 		cb_log(6, stack->port, "Idx:%d stack->cchan:%d in_use:%d Chan:%d\n",
 			i, stack->channels[i], stack->bc[i].in_use, i + 1);
-	}	/* end for */
+	}
 #if defined(AST_MISDN_ENHANCEMENTS)
 	for (i = MAX_BCHANS + 1; i < ARRAY_LEN(stack->bc); ++i) {
 		if (stack->bc[i].in_use) {
 			cb_log(6, stack->port, "Idx:%d stack->cchan:%d REGISTER Chan:%d in_use\n",
 				i, stack->channels[i], i + 1);
 		}
-	}	/* end for */
+	}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 }
 
@@ -539,7 +539,7 @@
 				cb_log(3, stack->port, " --> found REGISTER chan: %d\n", chan);
 				break;
 			}
-		}	/* end for */
+		}
 	} else
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 	{
@@ -562,7 +562,7 @@
 						break;
 					}
 				}
-			}	/* end for */
+			}
 		} else {
 			for (i = 0; i <= bnums; ++i) {
 				if (i != 15 && (channel < 0 || i == channel)) { /* skip E1 D channel ;) and work with chan preselection */
@@ -572,7 +572,7 @@
 						break;
 					}
 				}
-			}	/* end for */
+			}
 		}
 	}
 
@@ -844,13 +844,13 @@
 			empty_bc(&stack->bc[i]);
 			clean_up_bc(&stack->bc[i]);
 			stack->bc[i].in_use = 0;
-		}	/* end for */
+		}
 #if defined(AST_MISDN_ENHANCEMENTS)
 		for (i = MAX_BCHANS + 1; i < ARRAY_LEN(stack->bc); ++i) {
 			empty_chan_in_stack(stack, i + 1);
 			empty_bc(&stack->bc[i]);
 			stack->bc[i].in_use = 0;
-		}	/* end for */
+		}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 	}
 }
@@ -1479,7 +1479,7 @@
 			/* Found the stack */
 			break;
 		}
-	}	/* end for */
+	}
 
 	return stack;
 }
@@ -1494,7 +1494,7 @@
 			/* Found the stack */
 			break;
 		}
-	}	/* end for */
+	}
 
 	return stack;
 }
@@ -1508,7 +1508,7 @@
 			/* Found the stack */
 			break;
 		}
-	}	/* end for */
+	}
 
 	return stack;
 }
@@ -1521,14 +1521,14 @@
 		if ((stack->bc[i].l3_id & mask) == (l3id & mask)) {
 			return &stack->bc[i];
 		}
-	}	/* end for */
+	}
 #if defined(AST_MISDN_ENHANCEMENTS)
 	/* Search the B channel records for a REGISTER signaling link. */
 	for (i = MAX_BCHANS + 1; i < ARRAY_LEN(stack->bc); ++i) {
 		if ((stack->bc[i].l3_id & mask) == (l3id & mask)) {
 			return &stack->bc[i];
 		}
-	}	/* end for */
+	}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 	return stack_holder_find(stack,l3id);
 }
@@ -1542,14 +1542,14 @@
 		if (stack->bc[i].l3_id == l3id) {
 			return &stack->bc[i];
 		}
-	}	/* end for */
+	}
 #if defined(AST_MISDN_ENHANCEMENTS)
 	/* Search the B channel records for a REGISTER signaling link. */
 	for (i = MAX_BCHANS + 1; i < ARRAY_LEN(stack->bc); ++i) {
 		if (stack->bc[i].l3_id == l3id) {
 			return &stack->bc[i];
 		}
-	}	/* end for */
+	}
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
 	return stack_holder_find(stack,l3id);
 }
@@ -2169,7 +2169,7 @@
 
 	default:
 		break;
-	}	/* end switch */
+	}
 
 	/*  Parse Events and fire_up to App. */
 	event = isdn_msg_get_event(msgs_g, msg, 1);
@@ -2208,7 +2208,7 @@
 		break;
 	default:
 		break;
-	}	/* end switch */
+	}
 
 	if(!isdn_get_info(msgs_g, event, 1)) {
 		cb_log(4, stack->port, "Unknown Event Ind: prim %x dinfo %x\n", hh->prim, hh->dinfo);
@@ -2220,7 +2220,7 @@
 				break;
 			default:
 				break;
-			}	/* end switch */
+			}
 		}
 		cb_event(event, bc, glob_mgr->user_data);
 	}
@@ -2764,7 +2764,7 @@
 			}
 			bc = &dummybc;
 			break;
-		}	/* end switch */
+		}
 	}
 

[... 196 lines stripped ...]



More information about the asterisk-commits mailing list