]> sigrok.org Git - libsigrok.git/commitdiff
baylibre-acme: Replace g_close() with close() for now.
authorUwe Hermann <redacted>
Sun, 3 Jan 2016 01:51:01 +0000 (02:51 +0100)
committerUwe Hermann <redacted>
Sun, 3 Jan 2016 01:59:00 +0000 (02:59 +0100)
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.

src/hardware/baylibre-acme/protocol.c

index 6726667ed78d3d29888d4d4bb8ed927de8608de6..0bef0b22bdfe7cb9aef7170d47c571463b48ada8 100644 (file)
@@ -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;