Searched refs:logcnt (Results 1 – 1 of 1) sorted by relevance
1548 int dir_fd, i, logcnt, max_logcnt; in delete_oldest_timelog() local1556 logcnt = 0; in delete_oldest_timelog()1588 if ((oldlogs[logcnt].t = timegm(&tm)) == -1) in delete_oldest_timelog()1592 logcnt++; in delete_oldest_timelog()1599 if (logcnt >= max_logcnt) { in delete_oldest_timelog()1602 if (max_logcnt < logcnt) in delete_oldest_timelog()1612 if (logcnt > 0 && logcnt >= ent->numlogs && ent->numlogs > 1) { in delete_oldest_timelog()1613 oldlogs = realloc(oldlogs, logcnt * in delete_oldest_timelog()1623 qsort(oldlogs, logcnt, sizeof(struct oldlog_entry), in delete_oldest_timelog()1625 for (i = ent->numlogs - 1; i < logcnt; i++) { in delete_oldest_timelog()[all …]