summaryrefslogtreecommitdiff
path: root/btrfslabel.c
diff options
context:
space:
mode:
Diffstat (limited to 'btrfslabel.c')
-rw-r--r--btrfslabel.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/btrfslabel.c b/btrfslabel.c
index cb142b0a..88a51962 100644
--- a/btrfslabel.c
+++ b/btrfslabel.c
@@ -46,7 +46,7 @@
#define GET_LABEL 3
#define SET_LABEL 4
-static void change_label_unmounted(char *dev, char *nLabel)
+static int change_label_unmounted(char *dev, char *nLabel)
{
struct btrfs_root *root;
struct btrfs_trans_handle *trans;
@@ -123,6 +123,5 @@ int set_label(char *btrfs_dev, char *nLabel)
fprintf(stderr, "FATAL: the filesystem has to be unmounted\n");
return -2;
}
- change_label_unmounted(btrfs_dev, nLabel);
- return 0;
+ return change_label_unmounted(btrfs_dev, nLabel);
}