X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbaylibre-acme%2Fprotocol.c;h=0bef0b22bdfe7cb9aef7170d47c571463b48ada8;hb=9cfc695ffe5f04622f61acb98ea4ac91c3f4ffc3;hp=6726667ed78d3d29888d4d4bb8ed927de8608de6;hpb=2c24077466a299ead689c90f01f55f6d86c7386b;p=libsigrok.git 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;