[vlc-commits] dvb scan: use unsigned indices (CID#1048723)

Rémi Denis-Courmont git at videolan.org
Mon Aug 25 20:19:17 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 25 21:18:37 2014 +0300| [332f390dcd60ccec9d13bc2988b3fa13dfbbc24e] | committer: Rémi Denis-Courmont

dvb scan: use unsigned indices (CID#1048723)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=332f390dcd60ccec9d13bc2988b3fa13dfbbc24e
---

 modules/access/dvb/scan.c |    4 ++--
 modules/access/dvb/scan.h |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/access/dvb/scan.c b/modules/access/dvb/scan.c
index d800979..de1cd02 100644
--- a/modules/access/dvb/scan.c
+++ b/modules/access/dvb/scan.c
@@ -88,7 +88,7 @@ struct scan_t
 {
     vlc_object_t *p_obj;
     struct dialog_progress_bar_t *p_dialog;
-    int64_t i_index;
+    uint64_t i_index;
     scan_parameter_t parameter;
     int64_t i_time_start;
 
@@ -235,7 +235,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
 {
     msg_Dbg( p_scan->p_obj, "Scan index %"PRId64, p_scan->i_index );
 
-    int *pi_count = &p_scan->parameter.sat_info.i_count;
+    unsigned *pi_count = &p_scan->parameter.sat_info.i_count;
 
     if( !p_scan->parameter.sat_info.psz_name )
     {
diff --git a/modules/access/dvb/scan.h b/modules/access/dvb/scan.h
index 6326788..78c32a3 100644
--- a/modules/access/dvb/scan.h
+++ b/modules/access/dvb/scan.h
@@ -54,7 +54,7 @@ typedef struct scan_parameter_t
         int i_max;
         int i_step;
 
-        int i_count;    /* Number of frequency test to do */
+        unsigned i_count;    /* Number of frequency test to do */
     } frequency;
 
     struct
@@ -64,7 +64,7 @@ typedef struct scan_parameter_t
         int i_max;
         int i_step;
 
-        int i_count;
+        unsigned i_count;
     } bandwidth;
 
     struct
@@ -73,7 +73,7 @@ typedef struct scan_parameter_t
         char *psz_path;         /* config file path */
 
         scan_dvbs_transponder_t *p_transponders;
-        int i_count;
+        unsigned i_count;
     } sat_info;
 } scan_parameter_t;
 



More information about the vlc-commits mailing list