提交 d45a9994 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

64-bit sizes for xdu

上级 cc29cea9
......@@ -32,7 +32,7 @@ typedef uint64_t u64;
#define BSIZ (DIRSIZ+1)
#endif
static int
static size_t
du(int fd)
{
struct stat st;
......@@ -42,7 +42,7 @@ du(int fd)
return 0;
}
int size = ST_SIZE(st);
size_t size = ST_SIZE(st);
if (ST_ISDIR(st)) {
dirit di(fd);
......@@ -69,6 +69,6 @@ du(int fd)
int
main(int ac, char **av)
{
printf("%d\n", du(open(".", 0)));
printf("%ld\n", du(open(".", 0)));
return 0;
}
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论