* [PATCH]Fix compile error in quick-test.c of btrfs progs
@ 2008-12-24 6:42 Liu Hui
0 siblings, 0 replies; only message in thread
From: Liu Hui @ 2008-12-24 6:42 UTC (permalink / raw)
To: linux-btrfs
Hi,
This patch fix compiler error in quick-test.c
--
Thanks & Best Regards
Liu Hui
--
diff --git a/quick-test.c b/quick-test.c
index 44c2318..351c706 100644
--- a/quick-test.c
+++ b/quick-test.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <fcntl.h>
#include "kerncompat.h"
#include "radix-tree.h"
#include "ctree.h"
@@ -96,7 +97,7 @@ int main(int ac, char **av) {
printf("node %p level %d total ptrs %d free spc %lu\n", root->node,
btrfs_header_level(root->node),
btrfs_header_nritems(root->node),
- BTRFS_NODEPTRS_PER_BLOCK(root) -
+ (unsigned long)BTRFS_NODEPTRS_PER_BLOCK(root) -
btrfs_header_nritems(root->node));
printf("all searches good, deleting some items\n");
i = 0;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-24 6:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-24 6:42 [PATCH]Fix compile error in quick-test.c of btrfs progs Liu Hui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox