Searched refs:state_buf (Results 1 – 1 of 1) sorted by relevance
376 char state_buf[2]; in on_dev_event() local377 if (read(dev_event->fd, state_buf, 1) <= 0) in on_dev_event()381 state_buf[1]='\0'; in on_dev_event()382 if (atoi(state_buf) == dev_event->status) in on_dev_event()385 dev_event->status = atoi(state_buf); in on_dev_event()