[asterisk-commits] kpfleming: branch 1.4 r58352 - /branches/1.4/apps/app_meetme.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Mar 8 06:17:42 MST 2007


Author: kpfleming
Date: Thu Mar  8 07:17:42 2007
New Revision: 58352

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58352
Log:
fix a compiler warning, and overwriting 'res' value

Modified:
    branches/1.4/apps/app_meetme.c

Modified: branches/1.4/apps/app_meetme.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_meetme.c?view=diff&rev=58352&r1=58351&r2=58352
==============================================================================
--- branches/1.4/apps/app_meetme.c (original)
+++ branches/1.4/apps/app_meetme.c Thu Mar  8 07:17:42 2007
@@ -4693,22 +4693,22 @@
 
 static int load_module(void)
 {
-	int res;
+	int res = 0;
 
 	res |= load_config(0);
 
 	ast_cli_register_multiple(cli_meetme, ARRAY_LEN(cli_meetme));
-	res = ast_manager_register("MeetmeMute", EVENT_FLAG_CALL, 
-		action_meetmemute, "Mute a Meetme user");
+	res |= ast_manager_register("MeetmeMute", EVENT_FLAG_CALL, 
+				    action_meetmemute, "Mute a Meetme user");
 	res |= ast_manager_register("MeetmeUnmute", EVENT_FLAG_CALL, 
-		action_meetmeunmute, "Unmute a Meetme user");
+				    action_meetmeunmute, "Unmute a Meetme user");
 	res |= ast_register_application(app3, admin_exec, synopsis3, descrip3);
 	res |= ast_register_application(app2, count_exec, synopsis2, descrip2);
 	res |= ast_register_application(app, conf_exec, synopsis, descrip);
 	res |= ast_register_application(slastation_app, sla_station_exec,
-		slastation_synopsis, slastation_desc);
+					slastation_synopsis, slastation_desc);
 	res |= ast_register_application(slatrunk_app, sla_trunk_exec,
-		slatrunk_synopsis, slatrunk_desc);
+					slatrunk_synopsis, slatrunk_desc);
 
 	res |= ast_devstate_prov_add("Meetme", meetmestate);
 	res |= ast_devstate_prov_add("SLA", sla_state);



More information about the asterisk-commits mailing list