diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_fax.c | 4 | ||||
-rw-r--r-- | apps/app_meetme.c | 2 | ||||
-rw-r--r-- | apps/app_minivm.c | 14 |
3 files changed, 10 insertions, 10 deletions
diff --git a/apps/app_fax.c b/apps/app_fax.c index d6e9b4de0..bf57d827d 100644 --- a/apps/app_fax.c +++ b/apps/app_fax.c @@ -356,8 +356,8 @@ static int fax_generator_generate(struct ast_channel *chan, void *data, int len, } static struct ast_generator generator = { - alloc: fax_generator_alloc, - generate: fax_generator_generate, + .alloc = fax_generator_alloc, + .generate = fax_generator_generate, }; diff --git a/apps/app_meetme.c b/apps/app_meetme.c index ab6b94f3e..791f75eb0 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -2936,7 +2936,7 @@ static void meetme_menu_admin(enum menu_modes *menu_mode, int *dtmf, struct ast_ tweak_talk_volume(user, VOL_UP); break; default: - menu_mode = MENU_DISABLED; + *menu_mode = MENU_DISABLED; /* Play an error message! */ if (!ast_streamfile(chan, "conf-errormenu", ast_channel_language(chan))) { ast_waitstream(chan, ""); diff --git a/apps/app_minivm.c b/apps/app_minivm.c index 4b1c4b575..e97150b13 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -2998,10 +2998,10 @@ static char *handle_minivm_list_templates(struct ast_cli_entry *e, int cmd, stru ast_cli(a->fd, HVLT_OUTPUT_FORMAT, "-------------", "-------", "------", "------------", "-------"); AST_LIST_TRAVERSE(&message_templates, this, list) { ast_cli(a->fd, HVLT_OUTPUT_FORMAT, this->name, - this->charset ? this->charset : "-", - this->locale ? this->locale : "-", + S_OR(this->charset, "-"), + S_OR(this->locale, "-"), this->attachment ? "Yes" : "No", - this->subject ? this->subject : "-"); + S_OR(this->subject, "-")); count++; } AST_LIST_UNLOCK(&message_templates); @@ -3069,10 +3069,10 @@ static char *handle_minivm_show_users(struct ast_cli_entry *e, int cmd, struct a if ((a->argc == 3) || ((a->argc == 5) && !strcmp(a->argv[4], vmu->domain))) { count++; snprintf(tmp, sizeof(tmp), "%s@%s", vmu->username, vmu->domain); - ast_cli(a->fd, HMSU_OUTPUT_FORMAT, tmp, vmu->etemplate ? vmu->etemplate : "-", - vmu->ptemplate ? vmu->ptemplate : "-", - vmu->zonetag ? vmu->zonetag : "-", - vmu->attachfmt ? vmu->attachfmt : "-", + ast_cli(a->fd, HMSU_OUTPUT_FORMAT, tmp, S_OR(vmu->etemplate, "-"), + S_OR(vmu->ptemplate, "-"), + S_OR(vmu->zonetag, "-"), + S_OR(vmu->attachfmt, "-"), vmu->fullname); } } |