diff options
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_groupcount.c | 2 | ||||
-rwxr-xr-x | apps/app_read.c | 2 | ||||
-rwxr-xr-x | apps/app_realtime.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_groupcount.c b/apps/app_groupcount.c index d9a841f5d..ab31a3942 100755 --- a/apps/app_groupcount.c +++ b/apps/app_groupcount.c @@ -202,7 +202,7 @@ static int group_show_channels(int fd, int argc, char *argv[]) if (havepattern) regfree(®exbuf); - ast_cli(fd, "%d active channel(s)\n", numchans); + ast_cli(fd, "%d active channel%s\n", numchans, (numchans != 1) ? "s" : ""); return RESULT_SUCCESS; } diff --git a/apps/app_read.c b/apps/app_read.c index 0f0ab3752..0884c0d8b 100755 --- a/apps/app_read.c +++ b/apps/app_read.c @@ -159,7 +159,7 @@ static int read_exec(struct ast_channel *chan, void *data) tries--; if (option_verbose > 2) { if (tries) - ast_verbose(VERBOSE_PREFIX_3 "User entered nothing, %d chance(s) left\n", tries); + ast_verbose(VERBOSE_PREFIX_3 "User entered nothing, %d chance%s left\n", tries, (tries != 1) ? "s" : ""); else ast_verbose(VERBOSE_PREFIX_3 "User entered nothing.\n"); } diff --git a/apps/app_realtime.c b/apps/app_realtime.c index d4ded9c20..339801954 100755 --- a/apps/app_realtime.c +++ b/apps/app_realtime.c @@ -92,7 +92,7 @@ static int cli_update_realtime(int fd, int argc, char **argv) { return RESULT_SUCCESS; } - ast_cli(fd, "Updated %d RealTime record(s).\n", res); + ast_cli(fd, "Updated %d RealTime record%s.\n", res, (res != 1) ? "s" : ""); return RESULT_SUCCESS; } |