kopia lustrzana https://github.com/Hamlib/Hamlib
commit
18c4eb4631
|
@ -8,6 +8,8 @@
|
||||||
*.lo
|
*.lo
|
||||||
*.la
|
*.la
|
||||||
*.orig
|
*.orig
|
||||||
|
*.sh.log
|
||||||
|
*.sh.trs
|
||||||
*.swp
|
*.swp
|
||||||
$depbase.Tpo
|
$depbase.Tpo
|
||||||
Makefile
|
Makefile
|
||||||
|
|
23
cppcheck.sh
23
cppcheck.sh
|
@ -21,13 +21,7 @@ SUPPRESS="\
|
||||||
--suppress=*:extra/gnuradio/ssb.h \
|
--suppress=*:extra/gnuradio/ssb.h \
|
||||||
--suppress=*:extra/gnuradio/wfm.h \
|
--suppress=*:extra/gnuradio/wfm.h \
|
||||||
--suppress=*:extra/gnuradio/wfm.h \
|
--suppress=*:extra/gnuradio/wfm.h \
|
||||||
--suppress=*:extra/gnuradio/HrAGC.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"
|
|
||||||
|
|
||||||
#CHECK="\
|
#CHECK="\
|
||||||
#-D RIG_LEVEL_LINEOUT=1 \
|
#-D RIG_LEVEL_LINEOUT=1 \
|
||||||
|
@ -82,8 +76,9 @@ if test $# -eq 0 ; then
|
||||||
cppcheck --inline-suppr \
|
cppcheck --inline-suppr \
|
||||||
-I src \
|
-I src \
|
||||||
-I include \
|
-I include \
|
||||||
--include=include/hamlib/config.h \
|
-I include/hamlib/ \
|
||||||
--include=include/hamlib/rig.h \
|
-I lib \
|
||||||
|
-I security \
|
||||||
-q \
|
-q \
|
||||||
--force \
|
--force \
|
||||||
--enable=all \
|
--enable=all \
|
||||||
|
@ -93,17 +88,17 @@ if test $# -eq 0 ; then
|
||||||
. \
|
. \
|
||||||
>cppcheck.log 2>&1
|
>cppcheck.log 2>&1
|
||||||
else
|
else
|
||||||
cppcheck --check-config \
|
cppcheck --inline-suppr \
|
||||||
--inline-suppr \
|
|
||||||
-I src \
|
-I src \
|
||||||
-I include \
|
-I include \
|
||||||
--include=include/config.h \
|
-I include/hamlib/ \
|
||||||
--include=include/hamlib/rig.h \
|
-I lib \
|
||||||
|
-I security \
|
||||||
-q \
|
-q \
|
||||||
--force \
|
--force \
|
||||||
--enable=all \
|
--enable=all \
|
||||||
--std=c99 \
|
--std=c99 \
|
||||||
$SUPPRESS \
|
$SUPPRESS \
|
||||||
$CHECK \
|
$CHECK \
|
||||||
$1
|
"$@"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1230,9 +1230,9 @@ void *handle_socket(void *arg)
|
||||||
|
|
||||||
mutex_rigctld(0);
|
mutex_rigctld(0);
|
||||||
#else
|
#else
|
||||||
mutext_rigctld(1);
|
mutex_rigctld(1);
|
||||||
retcode = rig_open(my_rig);
|
retcode = rig_open(my_rig);
|
||||||
mutext_rigctld(1);
|
mutex_rigctld(1);
|
||||||
|
|
||||||
if (RIG_OK == retcode && verbose > RIG_DEBUG_ERR)
|
if (RIG_OK == retcode && verbose > RIG_DEBUG_ERR)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1214,9 +1214,9 @@ void *handle_socket(void *arg)
|
||||||
|
|
||||||
mutex_rigctld(0);
|
mutex_rigctld(0);
|
||||||
#else
|
#else
|
||||||
mutext_rigctld(1);
|
mutex_rigctld(1);
|
||||||
retcode = rig_open(my_rig);
|
retcode = rig_open(my_rig);
|
||||||
mutext_rigctld(1);
|
mutex_rigctld(1);
|
||||||
|
|
||||||
if (RIG_OK == retcode && verbose > RIG_DEBUG_ERR)
|
if (RIG_OK == retcode && verbose > RIG_DEBUG_ERR)
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#if defined(HAVE_LIBUSB_H)
|
#if defined(HAVE_LIBUSB_H)
|
||||||
#include "libusb.h"
|
#include <libusb.h>
|
||||||
#elif defined(HAVE_LIBUSB_1_0_LIBUSB_H)
|
#elif defined(HAVE_LIBUSB_1_0_LIBUSB_H)
|
||||||
#include <libusb-1.0/libusb.h>
|
#include <libusb-1.0/libusb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Ładowanie…
Reference in New Issue