From: Uwe Hermann Date: Sun, 3 Jan 2016 01:51:01 +0000 (+0100) Subject: baylibre-acme: Replace g_close() with close() for now. X-Git-Tag: libsigrok-0.4.0~42 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=e43887683cc1920fa0d6f9e557bff0e62fa7c8a3;p=libsigrok.git baylibre-acme: Replace g_close() with close() for now. This g_close(), the only one in the whole code-base, would unnecessarily raise the minimum glib version to 2.36. Thanks to Daniel Glöckner for the report. This fixes bug #724. --- diff --git a/src/hardware/baylibre-acme/protocol.c b/src/hardware/baylibre-acme/protocol.c index 6726667e..0bef0b22 100644 --- a/src/hardware/baylibre-acme/protocol.c +++ b/src/hardware/baylibre-acme/protocol.c @@ -277,7 +277,7 @@ static int read_probe_eeprom(unsigned int addr, struct probe_eeprom *eeprom) return -1; rd = read(fd, eeprom_buf, EEPROM_SIZE); - g_close(fd, NULL); + close(fd); if (rd != EEPROM_SIZE) return -1;