diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-06-27 23:02:52 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-06-27 23:02:52 +0000 |
commit | d148cde249b23d61820b91fd6baf483848cf6985 (patch) | |
tree | da6a8c446c46fb6bd6c6dd32ce0bc061ff3bc7ac /apps | |
parent | bc12b3a7d31aca35b3eb83e14a7f7f238c88bbfb (diff) |
Minor cleanups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1126 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_directory.c | 1 | ||||
-rwxr-xr-x | apps/app_festival.c | 9 | ||||
-rwxr-xr-x | apps/app_milliwatt.c | 2 |
3 files changed, 5 insertions, 7 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c index 00c19be64..949676d86 100755 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -112,7 +112,6 @@ static char *convert(char *lastname) case 'Z': tmp[lcount++] = '9'; break; - default: } lastname++; } diff --git a/apps/app_festival.c b/apps/app_festival.c index 4801edc4a..58f2d77ff 100755 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -46,8 +46,9 @@ static char *app = "Festival"; static char *synopsis = "Say text to the user"; static char *descrip = -" Festival(): Connect to Festival, send the argument, get back the waveform," -"play it to the user.\n"; +" Festival(text[|intkeys]): Connect to Festival, send the argument, get back the waveform," +"play it to the user, allowing any given interrupt keys to immediately terminate and return\n" +"the value.\n"; STANDARD_LOCAL_USER; @@ -302,9 +303,7 @@ static int festival_exec(struct ast_channel *chan, void *data) if (!(temp = ast_variable_retrieve(cfg, "general", "usecache"))) { usecache=0; } else { - if (strcasecmp(temp,"yes")==0) { - usecache=1; - } + usecache = ast_true(temp); } if (!(cachedir = ast_variable_retrieve(cfg, "general", "cachedir"))) { cachedir = "/tmp/"; diff --git a/apps/app_milliwatt.c b/apps/app_milliwatt.c index b51d8b2dd..a2f92dcf6 100755 --- a/apps/app_milliwatt.c +++ b/apps/app_milliwatt.c @@ -55,7 +55,7 @@ static void milliwatt_release(struct ast_channel *chan, void *data) return; } -static int milliwatt_generate(struct ast_channel *chan, void *data, int len) +static int milliwatt_generate(struct ast_channel *chan, void *data, int len, int samples) { struct ast_frame wf; unsigned char waste[AST_FRIENDLY_OFFSET]; |