Skip to content

Commit

Permalink
Fix compilation with libxml2
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Dec 5, 2020
1 parent 12335d5 commit 99d568d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/memload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 3 additions & 1 deletion tests/memsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
{
Expand Down Expand Up @@ -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,

This comment has been minimized.

Copy link
@gvanem

gvanem May 8, 2021

Contributor

Recent changes has broken this once more. Should be:

int dump_xml_chan(RIG *rig,
                  channel_t **chan_pp,
                  int chan_num,
                  const chan_t *chan_list,
                  rig_ptr_t arg)

This comment has been minimized.

Copy link
@mdblack98

mdblack98 via email May 8, 2021

Author Contributor

This comment has been minimized.

Copy link
@gvanem

gvanem May 8, 2021

Contributor

I take it some specific configuration is getting a build error?

No error, but an important warning. It could crash at runtime, but I've not tried it.

This comment has been minimized.

Copy link
@mdblack98

mdblack98 via email May 8, 2021

Author Contributor
channel_t **chan_pp,
int chan_num,
const chan_t *chan_list,
Expand Down

0 comments on commit 99d568d

Please sign in to comment.