summaryrefslogtreecommitdiffstats
path: root/stream/freesdp/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/freesdp/parser.c')
-rw-r--r--stream/freesdp/parser.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/stream/freesdp/parser.c b/stream/freesdp/parser.c
index 0774ce84f8..cb093c2bae 100644
--- a/stream/freesdp/parser.c
+++ b/stream/freesdp/parser.c
@@ -65,7 +65,7 @@ fsdp_parse (const char *text_description, fsdp_description_t * dsc)
{
fsdp_error_t result;
const char *p = text_description, *p2;
- unsigned int index, j;
+ unsigned int j;
/* temps for sscanf */
const unsigned int TEMPCHARS = 6;
char fsdp_buf[TEMPCHARS][MAXSHORTFIELDLEN];
@@ -252,7 +252,6 @@ fsdp_parse (const char *text_description, fsdp_description_t * dsc)
return FSDPE_MISSING_TIME;
dsc->time_periods = calloc (dsc->time_periods_count,
sizeof (fsdp_time_period_t *));
- index = 0;
for (j = 0; j < dsc->time_periods_count; j++)
{
unsigned int h = 0;
@@ -290,11 +289,6 @@ fsdp_parse (const char *text_description, fsdp_description_t * dsc)
calloc (h, sizeof (fsdp_repeat_t *));
for (h = 0; h < dsc->time_periods[j]->repeats_count; h++)
{
- /*
- get_repeat_values(p,&(dsc->time_periods[index].repeats[index2]));
- fsdp_error_t get_repeat_values (const char *r, fsdp_repeat_t
- *repeat);
- */
if (sscanf (p, "r=%10s %10s %" MLFLENS "[^\r\n]",
fsdp_buf[0], fsdp_buf[1], longfsdp_buf) == 3)
{