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

[email protected] (Michael Krufky)
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <[email protected]>
libdvbpsi | branch: master | Michael Krufky <[email protected]> | 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 <[email protected]>

> 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));

_______________________________________________
libdvbpsi-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvbpsi-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.