Correct some 'set-but-not-used' variable warnings.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@350789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2012-01-14 15:23:32 +00:00
parent 689f7d5d6b
commit 3bfed7039f
2 changed files with 10 additions and 8 deletions

View File

@@ -2276,14 +2276,13 @@ static int hfp_parse_cmgr(struct hfp_pvt *hfp, char *buf, char **from_number, ch
*/
static char *hfp_parse_cusd(struct hfp_pvt *hfp, char *buf)
{
int i, state, message_start, message_end;
int i, message_start, message_end;
char *cusd;
size_t s;
/* parse cusd message in the following format:
* +CUSD: 0,"100,00 EURO, valid till 01.01.2010, you are using tariff "Mega Tariff". More informations *111#."
*/
state = 0;
message_start = 0;
message_end = 0;
s = strlen(buf);
@@ -2681,7 +2680,7 @@ static int hfp_parse_cind_test(struct hfp_pvt *hfp, char *buf)
{
int i, state, group;
size_t s;
char *indicator = NULL, *values;
char *indicator = NULL;
hfp->nocallsetup = 1;
@@ -2720,7 +2719,6 @@ static int hfp_parse_cind_test(struct hfp_pvt *hfp, char *buf)
}
break;
case 5: /* mark the start of the value range */
values = &buf[i];
state++;
break;
case 6: /* find the end of the value range */
@@ -2992,7 +2990,6 @@ static sdp_session_t *sdp_register(void)
sdp_list_t *l2cap_list = 0, *rfcomm_list = 0, *root_list = 0, *proto_list = 0, *access_proto_list = 0, *svc_uuid_list = 0;
sdp_data_t *channel = 0;
int err = 0;
sdp_session_t *session = 0;
sdp_record_t *record = sdp_record_alloc();
@@ -3029,7 +3026,7 @@ static sdp_session_t *sdp_register(void)
if (!(session = sdp_connect(BDADDR_ANY, BDADDR_LOCAL, SDP_RETRY_IF_BUSY)))
ast_log(LOG_WARNING, "Failed to connect sdp and create session.\n");
else
err = sdp_record_register(session, record, 0);
sdp_record_register(session, record, 0);
sdp_data_free(channel);
sdp_list_free(rfcomm_list, 0);