[asterisk-commits] jrose: branch jrose/bridge_projects r385517 - /team/jrose/bridge_projects/res...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Apr 12 12:53:27 CDT 2013
Author: jrose
Date: Fri Apr 12 12:53:24 2013
New Revision: 385517
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=385517
Log:
minor fix to bridge_parking_new
Modified:
team/jrose/bridge_projects/res/parking/parking_bridge.c
Modified: team/jrose/bridge_projects/res/parking/parking_bridge.c
URL: http://svnview.digium.com/svn/asterisk/team/jrose/bridge_projects/res/parking/parking_bridge.c?view=diff&rev=385517&r1=385516&r2=385517
==============================================================================
--- team/jrose/bridge_projects/res/parking/parking_bridge.c (original)
+++ team/jrose/bridge_projects/res/parking/parking_bridge.c Fri Apr 12 12:53:24 2013
@@ -271,16 +271,9 @@
struct ast_bridge *bridge_parking_new(struct parking_lot_state *bridge_lot)
{
void *bridge;
-
bridge = ast_bridge_alloc(sizeof(struct ast_bridge_parking), &ast_bridge_parking_v_table);
-
bridge = ast_bridge_base_init(bridge, AST_BRIDGE_CAPABILITY_HOLDING, AST_BRIDGE_FLAG_MERGE_INHIBIT_TO | AST_BRIDGE_FLAG_MERGE_INHIBIT_FROM);
bridge = ast_bridge_parking_init(bridge, bridge_lot);
- if (!bridge) {
- return NULL;
- }
-
- ast_bridge_register(bridge);
-
+ bridge = ast_bridge_register(bridge);
return bridge;
}
More information about the asterisk-commits
mailing list