freebsd-ports/net/scand/files/patch-viewstat.c
Kirill Ponomarev c4581eac9b - Fix build on ARCH != i386
Submitted by:	maintainer
Noticed by:	bento via kris
2003-11-19 11:51:52 +00:00

11 lines
380 B
C

--- 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)) ) {