From: Danny Al-Gaaf Date: Tue, 14 May 2013 18:07:04 +0000 (+0200) Subject: mount/mount.ceph.c: reduce scope of 'skip' in parse_options() X-Git-Tag: v0.64~119^2~20 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=14871d056616e7c3e53aa1880daa7eb44ab41313;p=ceph.git mount/mount.ceph.c: reduce scope of 'skip' in parse_options() Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 684792500ffe..95731b347770 100755 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -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;