Searched refs:logcnt (Results 1 – 1 of 1) sorted by relevance
1533 int dir_fd, i, logcnt, max_logcnt; in delete_oldest_timelog() local1541 logcnt = 0; in delete_oldest_timelog()1573 if ((oldlogs[logcnt].t = timegm(&tm)) == -1) in delete_oldest_timelog()1577 logcnt++; in delete_oldest_timelog()1584 if (logcnt >= max_logcnt) { in delete_oldest_timelog()1587 if (max_logcnt < logcnt) in delete_oldest_timelog()1597 if (logcnt > 0 && logcnt >= ent->numlogs && ent->numlogs > 1) { in delete_oldest_timelog()1598 oldlogs = realloc(oldlogs, logcnt * in delete_oldest_timelog()1608 qsort(oldlogs, logcnt, sizeof(struct oldlog_entry), in delete_oldest_timelog()1610 for (i = ent->numlogs - 1; i < logcnt; i++) { in delete_oldest_timelog()[all …]