diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-05-04 22:12:55 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-05-06 18:33:16 +0300 |
commit | b68f9fef32971095836ea6bbeb2f12af417120d2 (patch) | |
tree | 46288d0356764318d595a946d22ca31eaf6b0101 /stream/freesdp | |
parent | 40f6ab5064a628dc11b79b5e571dc9444efac093 (diff) |
cleanup: shut up more warnings
Diffstat (limited to 'stream/freesdp')
-rw-r--r-- | stream/freesdp/parser.c | 8 |
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) { |