rem: cycles = avr_get_cycle_count(fd, p);
add: rc = avr_get_cycle_count(fd, p, &cycles);
context: int avr_chip_erase(int fd, AVRPART * p){  unsigned char cmd[4];  unsigned char res[4];  int cycles;  if (p->op[AVR_OP_CHIP_ERASE] == NULL) {    fprintf(stderr, "chip erase instruction not defined for part \"%s\"\n",            p->desc);    return -1;  }  cycles = avr_get_cycle_count(fd, p);  /*   * only print out the current cycle count if we aren't going to   * display it below    */  if (!do_cycles && ((cycles != -1) && (cycles != 0x00ffff))) {    fprintf(stderr,            "%s: current erase-rewrite cycle count is %d%s\n",            progname, cycles,             do_cycles ? "" : " (if being tracked)");  }  LED_ON(fd, pgm->pinno[PIN_LED_PGM]);  memset(cmd, 0, sizeof(cmd));  avr_set_bits(p->op[AVR_OP_CHIP_ERASE], cmd);  avr_cmd(fd, cmd, res);  usleep(p->chip_erase_delay);  avr_initialize(fd, p);  LED_OFF(fd, pgm->pinno[PIN_LED_PGM]);  if (do_cycles && (cycles != -1)) {    if (cycles == 0x00ffff) {      cycles = 0;    }    cycles++;    fprintf(stderr, "%s: erase-rewrite cycle count is now %d\n",             progname, cycles);    avr_put_cycle_count(fd, p, cycles);  }  return 0;}