ports/sysutils/tree/files/patch-tree.c
Pete Fritchman 0cf708bc4e Add tree 1.3, display a tree-view of directories with optional
color or HTML output.

PR:		33145
Submitted by:	Alan Eldridge <ports@geeksrus.net>
2001-12-24 21:50:53 +00:00

13 lines
625 B
C

$FreeBSD$
--- tree.c.orig Mon Jan 29 22:38:30 2001
+++ tree.c Mon Dec 24 08:09:39 2001
@@ -422,7 +422,7 @@
if (!noindent) indent();
if (inodeflag || devflag || pflag || sflag || uflag || gflag || Dflag) fprintf(outfile,"[");
- if (inodeflag) fprintf(outfile,"%7ld",(*dir)->inode);
+ if (inodeflag) fprintf(outfile,"%7ld",(long)(*dir)->inode);
if (inodeflag && (devflag || pflag || uflag || gflag || sflag || Dflag)) fprintf(outfile,"%s",sp);
if (devflag) fprintf(outfile,"%3d",(*dir)->dev);
if (devflag && (pflag || uflag || gflag || sflag || Dflag)) fprintf(outfile,"%s",sp);