| 750 | } |
| 751 | |
| 752 | static int64_t row_mtime(cbm_file_hash_t *rows, int n, const char *rel) { |
| 753 | for (int i = 0; i < n; i++) { |
| 754 | if (strcmp(rows[i].rel_path, rel) == 0) { |
| 755 | return rows[i].mtime_ns; |
| 756 | } |
| 757 | } |
| 758 | return -1; |
| 759 | } |
| 760 | |
| 761 | /* Overwrite one file_hashes row's mtime with a caller-chosen sentinel. |
| 762 | * Tests assert against this sentinel rather than against "a different |