mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Use of "private" as a field name in a header file messes with C++ projects
Reported by: chewbacca Patch by: casper (Closes issue #11401) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@90155 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -324,7 +324,7 @@ static int wav_open(struct ast_filestream *s)
|
||||
/* We don't have any header to read or anything really, but
|
||||
if we did, it would go here. We also might want to check
|
||||
and be sure it's a valid file. */
|
||||
struct wav_desc *tmp = (struct wav_desc *)s->private;
|
||||
struct wav_desc *tmp = (struct wav_desc *)s->_private;
|
||||
if ((tmp->maxlen = check_header(s->f)) < 0)
|
||||
return -1;
|
||||
return 0;
|
||||
@@ -344,7 +344,7 @@ static int wav_rewrite(struct ast_filestream *s, const char *comment)
|
||||
static void wav_close(struct ast_filestream *s)
|
||||
{
|
||||
char zero = 0;
|
||||
struct wav_desc *fs = (struct wav_desc *)s->private;
|
||||
struct wav_desc *fs = (struct wav_desc *)s->_private;
|
||||
/* Pad to even length */
|
||||
if (fs->bytes & 0x1)
|
||||
fwrite(&zero, 1, 1, s->f);
|
||||
@@ -359,7 +359,7 @@ static struct ast_frame *wav_read(struct ast_filestream *s, int *whennext)
|
||||
int bytes = WAV_BUF_SIZE; /* in bytes */
|
||||
off_t here;
|
||||
/* Send a frame from the file to the appropriate channel */
|
||||
struct wav_desc *fs = (struct wav_desc *)s->private;
|
||||
struct wav_desc *fs = (struct wav_desc *)s->_private;
|
||||
|
||||
here = ftello(s->f);
|
||||
if (fs->maxlen - here < bytes) /* truncate if necessary */
|
||||
@@ -411,7 +411,7 @@ static int wav_write(struct ast_filestream *fs, struct ast_frame *f)
|
||||
int x;
|
||||
short tmp[8000], *tmpi;
|
||||
float tmpf;
|
||||
struct wav_desc *s = (struct wav_desc *)fs->private;
|
||||
struct wav_desc *s = (struct wav_desc *)fs->_private;
|
||||
int res;
|
||||
|
||||
if (f->frametype != AST_FRAME_VOICE) {
|
||||
|
Reference in New Issue
Block a user