summaryrefslogtreecommitdiff
path: root/c_src/cmd_strip_alloc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-07-17 17:38:44 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-07-17 17:38:44 -0400
commitffe083c31d0a387e5092e1709daf717c21c2a98d (patch)
tree86eac13113d1091fb2b5e5e411a1d725d55b04b3 /c_src/cmd_strip_alloc.c
parent8471005b9fadfccd4c848ad71c899b90793b554d (diff)
Fix clang build errorsHEADmaster
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/cmd_strip_alloc.c')
-rw-r--r--c_src/cmd_strip_alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c_src/cmd_strip_alloc.c b/c_src/cmd_strip_alloc.c
index c313b665..e16eb093 100644
--- a/c_src/cmd_strip_alloc.c
+++ b/c_src/cmd_strip_alloc.c
@@ -104,8 +104,9 @@ int cmd_strip_alloc(int argc, char *argv[])
struct bch_opts opts = bch2_opts_empty();
opt_set(opts, nostart, true);
+ struct bch_fs *c;
reopen:
- struct bch_fs *c = bch2_fs_open(&devs, &opts);
+ c = bch2_fs_open(&devs, &opts);
int ret = PTR_ERR_OR_ZERO(c);
if (ret)
die("Error opening filesystem: %s", bch2_err_str(ret));