dvb scan: use unsigned indices (CID#1048723)
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 25 Aug 2014 18:18:37 +0000 (21:18 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 25 Aug 2014 18:18:37 +0000 (21:18 +0300)
modules/access/dvb/scan.c
modules/access/dvb/scan.h

index d800979..de1cd02 100644 (file)
@@ -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 )
     {
index 6326788..78c32a3 100644 (file)
@@ -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;