[libdvbpsi-devel] dr_a1: we only need int i declared for the for loop
Michael Krufky
git at videolan.org
Tue Feb 4 11:21:58 CET 2014
libdvbpsi | branch: master | Michael Krufky <mkrufky at linuxtv.org> | Sun May 19 16:03:53 2013 -0400| [e0da97cbe3210764e0d1dc5db7950ef848186fe8] | committer: Jean-Paul Saman
dr_a1: we only need int i declared for the for loop
Signed-off-by: Michael Krufky <mkrufky at linuxtv.org>
> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=e0da97cbe3210764e0d1dc5db7950ef848186fe8
---
src/descriptors/dr_a1.c | 3 +--
1 file changed, 1 insertion(+), 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));
More information about the libdvbpsi-devel
mailing list