]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mount/mount.ceph.c: reduce scope of 'skip' in parse_options()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 14 May 2013 18:07:04 +0000 (20:07 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 16 May 2013 12:15:51 +0000 (14:15 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mount/mount.ceph.c

index 684792500ffed49d54c6154e71d9e03133cdcb47..95731b3477704be77d0648bc02ef2403cd299439 100755 (executable)
@@ -83,7 +83,6 @@ static char *parse_options(const char *data, int *filesys_flags)
        char * next_keyword = NULL;
        char * out = NULL;
        int out_len = 0;
-       int skip;
        int pos = 0;
        char *name = NULL;
        int name_len = 0;
@@ -111,7 +110,7 @@ static char *parse_options(const char *data, int *filesys_flags)
                        value++;
                }
 
-               skip = 1;
+               int skip = 1;
 
                if (strncmp(data, "ro", 2) == 0) {
                        *filesys_flags |= MS_RDONLY;