Commit e0da97cb authored by Michael Krufky's avatar Michael Krufky Committed by Jean-Paul Saman

dr_a1: we only need int i declared for the for loop

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
parent c833e5a7
...@@ -48,7 +48,6 @@ dvbpsi_service_location_dr_t * dvbpsi_DecodeServiceLocationDr( ...@@ -48,7 +48,6 @@ dvbpsi_service_location_dr_t * dvbpsi_DecodeServiceLocationDr(
dvbpsi_descriptor_t * p_descriptor) dvbpsi_descriptor_t * p_descriptor)
{ {
dvbpsi_service_location_dr_t * p_decoded; dvbpsi_service_location_dr_t * p_decoded;
int i;
uint8_t * buf = p_descriptor->p_data; uint8_t * buf = p_descriptor->p_data;
/* Check the tag */ /* Check the tag */
...@@ -77,7 +76,7 @@ dvbpsi_service_location_dr_t * dvbpsi_DecodeServiceLocationDr( ...@@ -77,7 +76,7 @@ dvbpsi_service_location_dr_t * dvbpsi_DecodeServiceLocationDr(
buf = &p_descriptor->p_data[3]; buf = &p_descriptor->p_data[3];
for (i=0; i<p_decoded->i_number_elements; i++) for (int i = 0; i < p_decoded->i_number_elements; i++)
{ {
dvbpsi_service_location_element_t * p_element = dvbpsi_service_location_element_t * p_element =
(dvbpsi_service_location_element_t*)malloc(sizeof(dvbpsi_service_location_element_t)); (dvbpsi_service_location_element_t*)malloc(sizeof(dvbpsi_service_location_element_t));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment