summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
authorDimitri John Ledkov <xnox@ubuntu.com>2016-08-11 12:47:50 +0100
committerDimitri John Ledkov <xnox@ubuntu.com>2016-08-11 12:47:50 +0100
commit977f95bd164e17520fced5bd3ea1f01175a7f0ea (patch)
treecab3fd3533635deab3459b79f040621b006d33cc /cmds-subvolume.c
parente056abdf97ee6899e41bd511eaa8d98aa2c45bb8 (diff)
parentffd998be34a1a3d208106d051e85058ff9ac9667 (diff)
New upstream release.
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index e3d2cbce..be2d41ed 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -127,7 +127,6 @@ static int cmd_subvol_create(int argc, char **argv)
struct btrfs_qgroup_inherit *inherit = NULL;
DIR *dirstream = NULL;
- optind = 1;
while (1) {
int c = getopt(argc, argv, "c:i:v");
if (c < 0)
@@ -263,7 +262,6 @@ static int cmd_subvol_delete(int argc, char **argv)
int verbose = 0;
int commit_mode = 0;
- optind = 1;
while (1) {
int c;
static const struct option long_options[] = {
@@ -439,7 +437,6 @@ static int cmd_subvol_list(int argc, char **argv)
filter_set = btrfs_list_alloc_filter_set();
comparer_set = btrfs_list_alloc_comparer_set();
- optind = 1;
while(1) {
int c;
static const struct option long_options[] = {
@@ -616,7 +613,6 @@ static int cmd_subvol_snapshot(int argc, char **argv)
struct btrfs_qgroup_inherit *inherit = NULL;
DIR *dirstream1 = NULL, *dirstream2 = NULL;
- optind = 1;
memset(&args, 0, sizeof(args));
while (1) {
int c = getopt(argc, argv, "c:i:r");
@@ -1186,7 +1182,6 @@ static int cmd_subvol_sync(int argc, char **argv)
int id_count;
int sleep_interval = 1;
- optind = 1;
while (1) {
int c = getopt(argc, argv, "s:");