aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2013-05-19 20:03:53 (GMT)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>2014-02-04 09:52:03 (GMT)
commite0da97cbe3210764e0d1dc5db7950ef848186fe8 (patch)
tree3e1bb6bcf789e1668a5b61421b79a28f5ff65c5c
parentc833e5a7842425e6341ae421ec7f044a583e00c4 (diff)
dr_a1: we only need int i declared for the for loop
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r--src/descriptors/dr_a1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/descriptors/dr_a1.c b/src/descriptors/dr_a1.c
index b4242cc..7cac951 100644
--- a/src/descriptors/dr_a1.c
+++ b/src/descriptors/dr_a1.c
@@ -48,7 +48,6 @@ dvbpsi_service_location_dr_t * dvbpsi_DecodeServiceLocationDr(
dvbpsi_descriptor_t * p_descriptor)
{
dvbpsi_service_location_dr_t * p_decoded;
- int i;
uint8_t * buf = p_descriptor->p_data;
/* Check the tag */
@@ -77,7 +76,7 @@ dvbpsi_service_location_dr_t * dvbpsi_DecodeServiceLocationDr(
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*)malloc(sizeof(dvbpsi_service_location_element_t));

Privacy Policy