mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
Fix compiler warnings (bug #3367)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -791,6 +791,7 @@ static struct ast_channel *modem_request(const char *type, int format, void *dat
|
|||||||
struct ast_channel *tmp = NULL;
|
struct ast_channel *tmp = NULL;
|
||||||
char dev[80];
|
char dev[80];
|
||||||
ast_group_t group = 0;
|
ast_group_t group = 0;
|
||||||
|
int groupint;
|
||||||
char *stringp=NULL;
|
char *stringp=NULL;
|
||||||
strncpy(dev, (char *)data, sizeof(dev)-1);
|
strncpy(dev, (char *)data, sizeof(dev)-1);
|
||||||
stringp=dev;
|
stringp=dev;
|
||||||
@@ -799,11 +800,11 @@ static struct ast_channel *modem_request(const char *type, int format, void *dat
|
|||||||
|
|
||||||
if (dev[0]=='g' && isdigit(dev[1])) {
|
if (dev[0]=='g' && isdigit(dev[1])) {
|
||||||
/* Retrieve the group number */
|
/* Retrieve the group number */
|
||||||
if (sscanf(dev+1, "%u", &group) < 1) {
|
if (sscanf(dev+1, "%u", &groupint) < 1) {
|
||||||
ast_log(LOG_WARNING, "Unable to determine group from [%s]\n", (char *)data);
|
ast_log(LOG_WARNING, "Unable to determine group from [%s]\n", (char *)data);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
group = 1 << group;
|
group = 1 << groupint;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Search for an unowned channel */
|
/* Search for an unowned channel */
|
||||||
|
@@ -160,7 +160,6 @@ static void g723_close(struct ast_filestream *s)
|
|||||||
|
|
||||||
static int g723_write(struct ast_filestream *fs, struct ast_frame *f)
|
static int g723_write(struct ast_filestream *fs, struct ast_frame *f)
|
||||||
{
|
{
|
||||||
struct timeval now;
|
|
||||||
u_int32_t delay;
|
u_int32_t delay;
|
||||||
u_int16_t size;
|
u_int16_t size;
|
||||||
int res;
|
int res;
|
||||||
|
Reference in New Issue
Block a user