rem: int static stk500_drain(PROGRAMMER * pgm, int display)
add: static int stk500_drain(PROGRAMMER * pgm, int display)
context: int static stk500_drain(PROGRAMMER * pgm, int display){  struct timeval timeout;  fd_set rfds;  int nfds;  int rc;  unsigned char buf;  timeout.tv_sec = 0;  timeout.tv_usec = 250000;  if (display) {    fprintf(stderr, "drain>");  }  while (1) {    FD_ZERO(&rfds);    FD_SET(pgm->fd, &rfds);  reselect:    nfds = select(pgm->fd+1, &rfds, NULL, NULL, &timeout);    if (nfds == 0) {      if (display) {        fprintf(stderr, "<drain\n");      }            return 0;    }    else if (nfds == -1) {      if (errno == EINTR) {        goto reselect;      }      else {        fprintf(stderr, "%s: stk500_drain(): select(): %s\n",                progname, strerror(errno));        exit(1);      }    }    rc = read(pgm->fd, &buf, 1);    if (rc < 0) {      fprintf(stderr, "%s: stk500_drain(): read error: %s\n",              progname, strerror(errno));      exit(1);    }    if (display) {      fprintf(stderr, "%02x ", buf);    }  }}