From 7af0234fa7b0aff6e7130ad0a13f85fae8fe0a77 Mon Sep 17 00:00:00 2001 From: Mark Spencer <markster@digium.com> Date: Sun, 9 Jan 2005 09:01:40 +0000 Subject: [PATCH] Various small fixups git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4725 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- app.c | 2 +- include/asterisk/app.h | 2 +- res/res_agi.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.c b/app.c index 592141c672..19a821ae71 100755 --- a/app.c +++ b/app.c @@ -497,7 +497,7 @@ int ast_play_and_wait(struct ast_channel *chan, char *fn) static int global_silence_threshold = 128; static int global_maxsilence = 0; -int ast_play_and_record(struct ast_channel *chan, char *playfile, char *recordfile, int maxtime, char *fmt, int *duration, int silencethreshold, int maxsilence) +int ast_play_and_record(struct ast_channel *chan, const char *playfile, const char *recordfile, int maxtime, const char *fmt, int *duration, int silencethreshold, int maxsilence) { char d, *fmts; char comment[256]; diff --git a/include/asterisk/app.h b/include/asterisk/app.h index f8f9d37dd7..1af21f3e87 100755 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -67,7 +67,7 @@ int ast_play_and_wait(struct ast_channel *chan, char *fn); //! Record a file for a max amount of time (in seconds), in a given list of formats separated by '|', outputting the duration of the recording, and with a maximum // permitted silence time in milliseconds of 'maxsilence' under 'silencethreshold' or use '-1' for either or both parameters for defaults. -int ast_play_and_record(struct ast_channel *chan, char *playfile, char *recordfile, int maxtime_sec, char *fmt, int *duration, int silencethreshold, int maxsilence_ms); +int ast_play_and_record(struct ast_channel *chan, const char *playfile, const char *recordfile, int maxtime_sec, const char *fmt, int *duration, int silencethreshold, int maxsilence_ms); //! Record a message and prepend the message to the given record file after playing the optional playfile (or a beep), storing the duration in 'duration' and with a maximum // permitted silence time in milliseconds of 'maxsilence' under 'silencethreshold' or use '-1' for either or both parameters for defaults. diff --git a/res/res_agi.c b/res/res_agi.c index 88c259c016..37a0421b7d 100755 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -121,7 +121,7 @@ static int launch_netscript(char *agiurl, char *argv[], int *fds, int *efd, int struct pollfd pfds[1]; char *host; char *c; int port = AGI_PORT; - char *script; + char *script=""; struct sockaddr_in sin; struct hostent *hp; struct ast_hostent ahp; -- GitLab