kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warning in ampctl.c
rodzic
1709664650
commit
0c63e6efd3
|
@ -107,12 +107,6 @@ static struct option long_options[] =
|
||||||
|
|
||||||
#define MAXCONFLEN 128
|
#define MAXCONFLEN 128
|
||||||
|
|
||||||
/* variable for readline support */
|
|
||||||
#ifdef HAVE_LIBREADLINE
|
|
||||||
static const int have_rl = 1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
int interactive = 1; /* if no cmd on command line, switch to interactive */
|
int interactive = 1; /* if no cmd on command line, switch to interactive */
|
||||||
int prompt = 1; /* Print prompt in ampctl */
|
int prompt = 1; /* Print prompt in ampctl */
|
||||||
|
|
||||||
|
@ -363,7 +357,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
#ifdef HAVE_LIBREADLINE
|
#ifdef HAVE_LIBREADLINE
|
||||||
|
|
||||||
if (interactive && prompt && have_rl)
|
if (interactive && prompt)
|
||||||
{
|
{
|
||||||
rl_readline_name = "ampctl";
|
rl_readline_name = "ampctl";
|
||||||
#ifdef HAVE_READLINE_HISTORY
|
#ifdef HAVE_READLINE_HISTORY
|
||||||
|
@ -419,7 +413,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
#ifdef HAVE_LIBREADLINE
|
#ifdef HAVE_LIBREADLINE
|
||||||
|
|
||||||
if (interactive && prompt && have_rl)
|
if (interactive && prompt)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_READLINE_HISTORY
|
#ifdef HAVE_READLINE_HISTORY
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue