Fix compilation with libxml2

https://github.com/Hamlib/Hamlib/issues/456
pull/468/head
Michael Black W9MDB 2020-12-05 10:01:55 -06:00
rodzic 12335d5c25
commit 99d568df72
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -99,7 +99,7 @@ int xml_load(RIG *my_rig, const char *infilename)
set_chan(my_rig, &chan, node);
status = rig_set_channel(my_rig, &chan);
status = rig_set_channel(my_rig, RIG_VFO_NONE, &chan);
if (status != RIG_OK)
{

Wyświetl plik

@ -36,6 +36,7 @@
# include <libxml/tree.h>
static int dump_xml_chan(RIG *rig,
vfo_t vfo,
channel_t **chan,
int channel_num,
const chan_t *chan_list,
@ -61,7 +62,7 @@ int xml_save(RIG *rig, const char *outfilename)
printf("About to save data, enter cloning mode: %s\n",
rig->caps->clone_combo_get);
retval = rig_get_chan_all_cb(rig, dump_xml_chan, root);
retval = rig_get_chan_all_cb(rig, RIG_VFO_NONE, dump_xml_chan, root);
if (retval != RIG_OK)
{
@ -90,6 +91,7 @@ int xml_parm_save(RIG *rig, const char *outfilename)
#ifdef HAVE_XML2
int dump_xml_chan(RIG *rig,
vfo_t vfo,
channel_t **chan_pp,
int chan_num,
const chan_t *chan_list,