kopia lustrzana https://github.com/Hamlib/Hamlib
Merge branch 'master' of https://github.com/Hamlib/Hamlib
commit
0f7908be22
|
@ -8,6 +8,8 @@
|
|||
*.lo
|
||||
*.la
|
||||
*.orig
|
||||
*.sh.log
|
||||
*.sh.trs
|
||||
*.swp
|
||||
$depbase.Tpo
|
||||
Makefile
|
||||
|
|
23
cppcheck.sh
23
cppcheck.sh
|
@ -21,13 +21,7 @@ SUPPRESS="\
|
|||
--suppress=*:extra/gnuradio/ssb.h \
|
||||
--suppress=*:extra/gnuradio/wfm.h \
|
||||
--suppress=*:extra/gnuradio/wfm.h \
|
||||
--suppress=*:extra/gnuradio/HrAGC.h \
|
||||
--suppress=knownConditionTrueFalse:tests/rotctl.c \
|
||||
--suppress=knownConditionTrueFalse:tests/rigctl.c \
|
||||
--suppress=knownConditionTrueFalse:tests/ampctl.c \
|
||||
--suppress=knownConditionTrueFalse:tests/rotctl_parse.c \
|
||||
--suppress=knownConditionTrueFalse:tests/rigctl_parse.c \
|
||||
--suppress=knownConditionTrueFalse:tests/ampctl_parse.c"
|
||||
--suppress=*:extra/gnuradio/HrAGC.h
|
||||
|
||||
#CHECK="\
|
||||
#-D RIG_LEVEL_LINEOUT=1 \
|
||||
|
@ -82,8 +76,9 @@ if test $# -eq 0 ; then
|
|||
cppcheck --inline-suppr \
|
||||
-I src \
|
||||
-I include \
|
||||
--include=include/hamlib/config.h \
|
||||
--include=include/hamlib/rig.h \
|
||||
-I include/hamlib/ \
|
||||
-I lib \
|
||||
-I security \
|
||||
-q \
|
||||
--force \
|
||||
--enable=all \
|
||||
|
@ -93,17 +88,17 @@ if test $# -eq 0 ; then
|
|||
. \
|
||||
>cppcheck.log 2>&1
|
||||
else
|
||||
cppcheck --check-config \
|
||||
--inline-suppr \
|
||||
cppcheck --inline-suppr \
|
||||
-I src \
|
||||
-I include \
|
||||
--include=include/config.h \
|
||||
--include=include/hamlib/rig.h \
|
||||
-I include/hamlib/ \
|
||||
-I lib \
|
||||
-I security \
|
||||
-q \
|
||||
--force \
|
||||
--enable=all \
|
||||
--std=c99 \
|
||||
$SUPPRESS \
|
||||
$CHECK \
|
||||
$1
|
||||
"$@"
|
||||
fi
|
||||
|
|
|
@ -472,8 +472,6 @@ int frontamp_get_conf2(AMP *amp, token_t token, char *val, int val_len)
|
|||
*/
|
||||
|
||||
|
||||
#ifdef XXREMOVEDXXC
|
||||
// Not referenced anywhere
|
||||
/**
|
||||
* \brief Executes cfunc on all the elements stored in the configuration
|
||||
* parameters table.
|
||||
|
@ -534,7 +532,6 @@ int HAMLIB_API amp_token_foreach(AMP *amp,
|
|||
|
||||
return RIG_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,7 +23,6 @@ void never_used()
|
|||
amp_ext_token_lookup();
|
||||
amp_probe_all();
|
||||
amp_set_powerstat();
|
||||
amp_token_foreach();
|
||||
amp_unregister();
|
||||
cm108_dcd_get();
|
||||
CtrlHandler();
|
||||
|
|
|
@ -320,8 +320,6 @@ int main(int argc, char *argv[])
|
|||
my_amp->state.ampport_deprecated.parm.serial.rate = serial_rate;
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
/*
|
||||
* print out conf parameters
|
||||
*/
|
||||
|
@ -330,8 +328,6 @@ int main(int argc, char *argv[])
|
|||
amp_token_foreach(my_amp, print_conf_list, (rig_ptr_t)my_amp);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Print out capabilities, and exits immediately as we may be interested
|
||||
* only in caps, and rig_open may fail.
|
||||
|
|
|
@ -1493,7 +1493,6 @@ void usage_amp(FILE *fout)
|
|||
}
|
||||
|
||||
|
||||
#if 0
|
||||
int print_conf_list(const struct confparams *cfp, rig_ptr_t data)
|
||||
{
|
||||
AMP *amp = (AMP *) data;
|
||||
|
@ -1538,7 +1537,7 @@ int print_conf_list(const struct confparams *cfp, rig_ptr_t data)
|
|||
|
||||
return 1; /* != 0, we want them all ! */
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
static int hash_model_list(const struct amp_caps *caps, void *data)
|
||||
{
|
||||
|
|
|
@ -345,8 +345,6 @@ int main(int argc, char *argv[])
|
|||
my_amp->state.ampport.parm.serial.rate = serial_rate;
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
/*
|
||||
* print out conf parameters
|
||||
*/
|
||||
|
@ -355,8 +353,6 @@ int main(int argc, char *argv[])
|
|||
amp_token_foreach(my_amp, print_conf_list, (rig_ptr_t)my_amp);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Print out conf parameters, and exits immediately as we may be
|
||||
* interested only in only caps, and rig_open may fail.
|
||||
|
|
|
@ -1230,9 +1230,9 @@ void *handle_socket(void *arg)
|
|||
|
||||
mutex_rigctld(0);
|
||||
#else
|
||||
mutext_rigctld(1);
|
||||
mutex_rigctld(1);
|
||||
retcode = rig_open(my_rig);
|
||||
mutext_rigctld(1);
|
||||
mutex_rigctld(1);
|
||||
|
||||
if (RIG_OK == retcode && verbose > RIG_DEBUG_ERR)
|
||||
{
|
||||
|
|
|
@ -1214,9 +1214,9 @@ void *handle_socket(void *arg)
|
|||
|
||||
mutex_rigctld(0);
|
||||
#else
|
||||
mutext_rigctld(1);
|
||||
mutex_rigctld(1);
|
||||
retcode = rig_open(my_rig);
|
||||
mutext_rigctld(1);
|
||||
mutex_rigctld(1);
|
||||
|
||||
if (RIG_OK == retcode && verbose > RIG_DEBUG_ERR)
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <string.h>
|
||||
#include "config.h"
|
||||
#if defined(HAVE_LIBUSB_H)
|
||||
#include "libusb.h"
|
||||
#include <libusb.h>
|
||||
#elif defined(HAVE_LIBUSB_1_0_LIBUSB_H)
|
||||
#include <libusb-1.0/libusb.h>
|
||||
#endif
|
||||
|
|
Ładowanie…
Reference in New Issue