]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix a compiler warning, and overwriting 'res' value
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 8 Mar 2007 13:17:42 +0000 (13:17 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 8 Mar 2007 13:17:42 +0000 (13:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58352 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index aee0eb9a61789fee07980e8982d50bf5cedc1622..ba5fb22ebac857cc20074f47bab04436421907a6 100644 (file)
@@ -4693,22 +4693,22 @@ static int unload_module(void)
 
 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);