kopia lustrzana https://github.com/Hamlib/Hamlib
Fix compile warnings in rigctl.c and rigctl_parse.c
rodzic
d7e9bfd35c
commit
fb51f4f902
|
@ -118,14 +118,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;
|
|
||||||
#else
|
|
||||||
static const int have_rl = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
RIG *my_rig; /* handle to rig (instance) */
|
RIG *my_rig; /* handle to rig (instance) */
|
||||||
|
@ -571,7 +563,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
#ifdef HAVE_LIBREADLINE
|
#ifdef HAVE_LIBREADLINE
|
||||||
|
|
||||||
if (interactive && prompt && have_rl)
|
if (interactive && prompt)
|
||||||
{
|
{
|
||||||
rl_readline_name = "rigctl";
|
rl_readline_name = "rigctl";
|
||||||
|
|
||||||
|
@ -628,7 +620,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
|
||||||
|
|
||||||
|
|
|
@ -456,8 +456,10 @@ static int scanfc(FILE *fin, const char *format, void *p)
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
*(char *)p = 0;
|
*(char *)p = 0;
|
||||||
int ret = fscanf(fin, format, p);
|
|
||||||
|
ret = fscanf(fin, format, p);
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue