Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2008 23:55:29 +0000 (UTC)
From:      Max Laier <mlaier@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184742 - head/usr.bin/du
Message-ID:  <200811062355.mA6NtTed068948@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mlaier
Date: Thu Nov  6 23:55:28 2008
New Revision: 184742
URL: http://svn.freebsd.org/changeset/base/184742

Log:
  Restore (intmax_t) casts I lost during the last change & unbreak the build.

Modified:
  head/usr.bin/du/du.c

Modified: head/usr.bin/du/du.c
==============================================================================
--- head/usr.bin/du/du.c	Thu Nov  6 22:32:19 2008	(r184741)
+++ head/usr.bin/du/du.c	Thu Nov  6 23:55:28 2008	(r184742)
@@ -273,8 +273,9 @@ main(int argc, char *argv[])
 					(void)printf("\t%s\n", p->fts_path);
 				} else {
 					(void)printf("%jd\t%s\n",
-					    howmany(p->fts_bignum * cblocksize,
-					    blocksize), p->fts_path);
+					    (intmax_t)howmany(p->fts_bignum *
+					    cblocksize, blocksize),
+					    p->fts_path);
 				}
 			}
 			break;
@@ -304,8 +305,9 @@ main(int argc, char *argv[])
 					(void)printf("\t%s\n", p->fts_path);
 				} else {
 					(void)printf("%jd\t%s\n",
-					    howmany(curblocks * cblocksize,
-					    blocksize), p->fts_path);
+					    (intmax_t)howmany(curblocks *
+					    cblocksize, blocksize),
+					    p->fts_path);
 				}
 			}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811062355.mA6NtTed068948>