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