提交 6d978f5a 创建 作者: Silas Boyd-Wickizer's avatar Silas Boyd-Wickizer

merge

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