From e50f552e0f634f32f118bec1f8ca0b229cdb0a4d Mon Sep 17 00:00:00 2001 From: Michael Black Date: Wed, 15 Jan 2020 15:57:01 -0600 Subject: [PATCH] Fix mingw32 build --- src/parallel.c | 2 +- tests/ampctl_parse.c | 3 --- tests/rigctl_parse.c | 3 --- tests/rotctl_parse.c | 3 --- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/parallel.c b/src/parallel.c index f40144480..b6c2272c7 100644 --- a/src/parallel.c +++ b/src/parallel.c @@ -126,8 +126,8 @@ */ int par_open(hamlib_port_t *port) { -#ifdef HAVE_LINUX_PPDEV_H int fd; +#ifdef HAVE_LINUX_PPDEV_H int mode; #endif diff --git a/tests/ampctl_parse.c b/tests/ampctl_parse.c index 88f8bd462..d0a41ce95 100644 --- a/tests/ampctl_parse.c +++ b/tests/ampctl_parse.c @@ -862,9 +862,6 @@ int ampctl_parse(AMP *my_amp, FILE *fin, FILE *fout, char *argv[], int argc) rp_hist_buf = (char *)calloc(896, sizeof(char)); #endif - rl_instream = fin; - rl_outstream = fout; - rp_getline("\nAmplifier command: "); /* EOF (Ctl-D) received on empty input line, bail out gracefully. */ diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index 1a8636642..89413199d 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -1019,9 +1019,6 @@ int rigctl_parse(RIG *my_rig, FILE *fin, FILE *fout, char *argv[], int argc, rp_hist_buf = (char *)calloc(512, sizeof(char)); #endif - rl_instream = fin; - rl_outstream = fout; - rp_getline("\nRig command: "); /* EOF (Ctl-D) received on empty input line, bail out gracefully. */ diff --git a/tests/rotctl_parse.c b/tests/rotctl_parse.c index c8d7c615b..eaef903bc 100644 --- a/tests/rotctl_parse.c +++ b/tests/rotctl_parse.c @@ -910,9 +910,6 @@ int rotctl_parse(ROT *my_rot, FILE *fin, FILE *fout, char *argv[], int argc, rp_hist_buf = (char *)calloc(896, sizeof(char)); #endif - rl_instream = fin; - rl_outstream = fout; - rp_getline("\nRotator command: "); /* EOF (Ctl-D) received on empty input line, bail out gracefully. */