From 38ceccda20883fc4f202e10054f98f9d8585ad71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 21 Mar 2022 10:15:47 +0100 Subject: [PATCH] set_hupcl() is always implemented, so n oneed to #ifdef its invocation --- comport.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/comport.c b/comport.c index 440d87c..a4c3fbb 100644 --- a/comport.c +++ b/comport.c @@ -262,6 +262,7 @@ static int set_break(t_comport *x, int on); static int set_rts(t_comport *x, int nr); static int set_xonxoff(t_comport *x, int nr); static int set_serial(t_comport *x); +static int set_hupcl(t_comport *x, int nr); static int write_serial(t_comport *x, unsigned char serial_byte); static int write_serials(t_comport *x, unsigned char *serial_buf, int buf_length); static int comport_get_dsr(t_comport *x); @@ -270,7 +271,6 @@ static int comport_get_cts(t_comport *x); static HANDLE open_serial(unsigned int com_num, t_comport *x); static HANDLE close_serial(t_comport *x); #else -static int set_hupcl(t_comport *x, int nr); static int open_serial(unsigned int com_num, t_comport *x); static int close_serial(t_comport *x); static long get_baud_ratebits(t_comport*x, long *baud); @@ -474,6 +474,8 @@ static int set_serial(t_comport *x) static int set_hupcl(t_comport *x, int nr) { // this is a dummy function since Windows doesn't use HUPCL, AFAIK hans@eds.org + (void)x; + (void)nr; } static HANDLE open_serial(unsigned int com_num, t_comport *x) @@ -1685,9 +1687,7 @@ static void comport_xonxoff(t_comport *x,t_floatarg f) static void comport_hupcl(t_comport *x,t_floatarg f) { -#ifndef _WIN32 - set_hupcl(x,f); -#endif + set_hupcl(x, f); } static void comport_close(t_comport *x)