mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-21 04:46:29 +00:00
Merged revisions 60712 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r60712 | tilghman | 2007-04-08 09:12:00 -0500 (Sun, 08 Apr 2007) | 2 lines Fix --enable-dev-mode ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -350,7 +350,9 @@ static struct ast_frame *wav_read(struct ast_filestream *s, int *whennext)
|
|||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
int samples; /* actual samples read */
|
int samples; /* actual samples read */
|
||||||
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||||
int x;
|
int x;
|
||||||
|
#endif
|
||||||
short *tmp;
|
short *tmp;
|
||||||
int bytes = WAV_BUF_SIZE; /* in bytes */
|
int bytes = WAV_BUF_SIZE; /* in bytes */
|
||||||
off_t here;
|
off_t here;
|
||||||
@@ -389,8 +391,8 @@ static struct ast_frame *wav_read(struct ast_filestream *s, int *whennext)
|
|||||||
|
|
||||||
static int wav_write(struct ast_filestream *fs, struct ast_frame *f)
|
static int wav_write(struct ast_filestream *fs, struct ast_frame *f)
|
||||||
{
|
{
|
||||||
int x;
|
|
||||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||||
|
int x;
|
||||||
short tmp[8000], *tmpi;
|
short tmp[8000], *tmpi;
|
||||||
#endif
|
#endif
|
||||||
struct wav_desc *s = (struct wav_desc *)fs->private;
|
struct wav_desc *s = (struct wav_desc *)fs->private;
|
||||||
|
@@ -403,7 +403,7 @@ static void post_raw(struct mm_mimepart *part, const char *post_dir, const char
|
|||||||
body_len = mm_mimepart_getlength(part);
|
body_len = mm_mimepart_getlength(part);
|
||||||
|
|
||||||
if (option_debug)
|
if (option_debug)
|
||||||
ast_log(LOG_DEBUG, "Body length is %ld\n", body_len);
|
ast_log(LOG_DEBUG, "Body length is %ld\n", (long int)body_len);
|
||||||
|
|
||||||
fwrite(body, 1, body_len, f);
|
fwrite(body, 1, body_len, f);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user