Searched refs:logcnt (Results 1 – 1 of 1) sorted by relevance
1550 int dir_fd, i, logcnt, max_logcnt; in delete_oldest_timelog() local1558 logcnt = 0; in delete_oldest_timelog()1590 if ((oldlogs[logcnt].t = timegm(&tm)) == -1) in delete_oldest_timelog()1594 logcnt++; in delete_oldest_timelog()1601 if (logcnt >= max_logcnt) { in delete_oldest_timelog()1604 if (max_logcnt < logcnt) in delete_oldest_timelog()1614 if (logcnt > 0 && logcnt >= ent->numlogs && ent->numlogs > 1) { in delete_oldest_timelog()1615 oldlogs = realloc(oldlogs, logcnt * in delete_oldest_timelog()1625 qsort(oldlogs, logcnt, sizeof(struct oldlog_entry), in delete_oldest_timelog()1627 for (i = ent->numlogs - 1; i < logcnt; i++) { in delete_oldest_timelog()[all …]