return -1;
rd = read(fd, eeprom_buf, EEPROM_SIZE);
- g_close(fd, NULL);
+ close(fd);
if (rd != EEPROM_SIZE)
return -1;
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;