mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-13 13:32:53 +08:00
fix: Failed to compile on mac
This commit is contained in:
parent
4836145ae4
commit
e0c86995be
@ -220,7 +220,7 @@ static int get_pattern_mode_from_file(uint8_t device_mode)
|
|||||||
dir = g_dir_open(dir_str,0,NULL);
|
dir = g_dir_open(dir_str,0,NULL);
|
||||||
if(dir == NULL)
|
if(dir == NULL)
|
||||||
{
|
{
|
||||||
return;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((filename = g_dir_read_name(dir)) != NULL)
|
while ((filename = g_dir_read_name(dir)) != NULL)
|
||||||
@ -251,6 +251,8 @@ static int get_pattern_mode_from_file(uint8_t device_mode)
|
|||||||
pattern_dso_count = index;
|
pattern_dso_count = index;
|
||||||
else if(device_mode == ANALOG)
|
else if(device_mode == ANALOG)
|
||||||
pattern_analog_count = index;
|
pattern_analog_count = index;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int scan_dsl_file(struct sr_dev_inst *sdi)
|
static int scan_dsl_file(struct sr_dev_inst *sdi)
|
||||||
@ -423,7 +425,7 @@ static int init_random_data(struct session_vdev * vdev,struct sr_dev_inst *sdi)
|
|||||||
probe_count[cur_probe] -= 1;
|
probe_count[cur_probe] -= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -448,7 +450,7 @@ static GSList *hw_scan(GSList *options)
|
|||||||
if (vdev == NULL)
|
if (vdev == NULL)
|
||||||
{
|
{
|
||||||
sr_err("%s: sdi->priv malloc failed", __func__);
|
sr_err("%s: sdi->priv malloc failed", __func__);
|
||||||
return SR_ERR_MALLOC;
|
return devices;
|
||||||
}
|
}
|
||||||
|
|
||||||
sdi = sr_dev_inst_new(LOGIC, SR_ST_INACTIVE,
|
sdi = sr_dev_inst_new(LOGIC, SR_ST_INACTIVE,
|
||||||
|
@ -136,7 +136,7 @@ struct DEMO_caps {
|
|||||||
const uint64_t *vdivs;
|
const uint64_t *vdivs;
|
||||||
uint8_t vga_id;
|
uint8_t vga_id;
|
||||||
uint16_t default_channelmode;
|
uint16_t default_channelmode;
|
||||||
enum DEMO_PATTERN default_pattern;
|
int default_pattern; /**enum DEMO_PATTERN type*/
|
||||||
uint64_t default_timebase;
|
uint64_t default_timebase;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user