X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbaylibre-acme%2Fprotocol.c;h=0bef0b22bdfe7cb9aef7170d47c571463b48ada8;hb=9cfc695ffe5f04622f61acb98ea4ac91c3f4ffc3;hp=becd68517cb215f66205b657c30fe2e788ed7852;hpb=5faebab2903dc91949edc31f0a4b118d86090a30;p=libsigrok.git diff --git a/src/hardware/baylibre-acme/protocol.c b/src/hardware/baylibre-acme/protocol.c index becd6851..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; @@ -651,7 +651,8 @@ static float read_sample(struct sr_channel *ch) SR_PRIV int bl_acme_open_channel(struct sr_channel *ch) { struct channel_priv *chp; - char path[64], *file; + char path[64]; + const char *file; int fd; chp = ch->priv;