Skip to content

Commit 29a4296

Browse files
committed
find(1): fix compat with glibc fts
1 parent f18b450 commit 29a4296

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src.freebsd/findutils/find/printf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ do_printf(PLAN *plan, FTSENT *entry, FILE *fout)
245245
(float)sp->st_blocks * 512 / (float)sp->st_size);
246246
break;
247247
case 'd': /* Depth in tree */
248-
fprintf(fout, "%ld", entry->fts_level);
248+
fprintf(fout, "%ld", (long)entry->fts_level);
249249
break;
250250
case 'D': /* device number */
251251
fprintf(fout, "%ju", (uintmax_t)sp->st_dev);

0 commit comments

Comments
 (0)