1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Fix build on ARCH != i386

Submitted by:	maintainer
Noticed by:	bento via kris
This commit is contained in:
Kirill Ponomarev 2003-11-19 11:51:52 +00:00
parent 7c6ac8ed7a
commit c4581eac9b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94349

View File

@ -0,0 +1,11 @@
--- viewstat.c.orig Wed Nov 19 12:49:59 2003
+++ viewstat.c Wed Nov 19 12:50:15 2003
@@ -122,7 +122,7 @@
if (fstat(fd,&filestat)) Quit("fstat");
printf("Number of clusters = %d\n",
- (int) filestat.st_size / sizeof (clusterItem));
+ (int) filestat.st_size / (int) sizeof (clusterItem));
}
while ( sizeof(clusterItem) == read( fd, &temp, sizeof(clusterItem)) ) {