diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-18 11:40:44 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-18 11:40:44 +0000 |
commit | 22bfa76f85786a1bead494db1dbcdf0294333ab0 (patch) | |
tree | adbef558afb0ba3cfcbefb42d96571803cf97314 | |
parent | 29dd0c8e46fd8f07e3f9dd2727b052f699dba574 (diff) |
Fix compiler warnings (bug #3367)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4832 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/chan_modem.c | 5 | ||||
-rwxr-xr-x | formats/format_g723.c | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_modem.c b/channels/chan_modem.c index 6bd5c6cd3..bbbac0a99 100755 --- a/channels/chan_modem.c +++ b/channels/chan_modem.c @@ -791,6 +791,7 @@ static struct ast_channel *modem_request(const char *type, int format, void *dat struct ast_channel *tmp = NULL; char dev[80]; ast_group_t group = 0; + int groupint; char *stringp=NULL; strncpy(dev, (char *)data, sizeof(dev)-1); 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])) { /* 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); return NULL; } - group = 1 << group; + group = 1 << groupint; } /* Search for an unowned channel */ diff --git a/formats/format_g723.c b/formats/format_g723.c index 1c02ada17..0b061c20f 100755 --- a/formats/format_g723.c +++ b/formats/format_g723.c @@ -160,7 +160,6 @@ static void g723_close(struct ast_filestream *s) static int g723_write(struct ast_filestream *fs, struct ast_frame *f) { - struct timeval now; u_int32_t delay; u_int16_t size; int res; |