From 3ceceda914e19a3f7982c5050e6ffb23522071f2 Mon Sep 17 00:00:00 2001 From: David Marcin Date: Tue, 6 Dec 2011 12:14:54 -0800 Subject: [PATCH 30/35] btrfs-progs: Fix compilation errors with btrfs-select-super.c introduced by refactoring. Signed-off-by: David Marcin --- btrfs-select-super.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/btrfs-select-super.c b/btrfs-select-super.c index 4d27f1b..079986a 100644 --- a/btrfs-select-super.c +++ b/btrfs-select-super.c @@ -48,7 +48,7 @@ int main(int ac, char **av) int num; u64 bytenr = 0; int commit = 0; - int use_lowest_bdev = 0; + int use_earliest_bdev = 0; int fp; while(1) { @@ -93,7 +93,7 @@ int main(int ac, char **av) return -EBUSY; } - fp = open(av[optind], O_CREAT|O_RDRW, 0600); + fp = open(av[optind], O_CREAT|O_RDWR, 0600); if (fp < 0) { fprintf(stderr, "Could not open %s\n", av[optind]); return 1; -- 1.7.6.233.gd79bc