From: Martin Ling Date: Sat, 23 Nov 2013 20:48:15 +0000 (+0000) Subject: Use accessor for new libserialport opaque port structure. X-Git-Tag: libsigrok-0.3.0~533 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3182932d360303df459abce20dbe093ce9c453e8;p=libsigrok.git Use accessor for new libserialport opaque port structure. --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index de0751a4..7cc81c64 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -83,7 +83,7 @@ SR_PRIV int serial_open(struct sr_serial_dev_inst *serial, int flags) } #ifndef _WIN32 - serial->fd = serial->data->fd; + sp_get_port_handle(serial->data, &serial->fd); #endif if (serial->serialcomm)