Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
7e657d04
Commit
7e657d04
authored
Apr 10, 2015
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mount: Rename find_fstype_by_name's vars to simplify further patching
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
f9f99573
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mount.c
mount.c
+7
-7
No files found.
mount.c
View file @
7e657d04
...
...
@@ -1172,7 +1172,7 @@ static struct fstype fstypes[] = {
},
};
struct
fstype
*
find_fstype_by_name
(
char
*
fst
)
struct
fstype
*
find_fstype_by_name
(
char
*
_
fst
)
{
int
i
;
...
...
@@ -1187,19 +1187,19 @@ struct fstype *find_fstype_by_name(char *fst)
* type-vs-subtype delimiter is the dot symbol. We disregard any
* subtypes for the purpose of finding the fstype.
*/
char
fst
ype
[
1024
];
char
fst
[
1024
];
for
(
i
=
0
;
fst
[
i
]
&&
i
<
sizeof
(
fstype
)
-
1
;
i
++
)
{
if
(
fst
[
i
]
==
'.'
)
for
(
i
=
0
;
_fst
[
i
]
&&
i
<
sizeof
(
fst
)
-
1
;
i
++
)
{
if
(
_
fst
[
i
]
==
'.'
)
break
;
fst
ype
[
i
]
=
fst
[
i
];
fst
[
i
]
=
_
fst
[
i
];
}
fst
ype
[
i
]
=
0
;
fst
[
i
]
=
0
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
fstypes
);
i
++
)
{
if
(
!
strcmp
(
fstypes
[
i
].
name
,
fst
ype
))
if
(
!
strcmp
(
fstypes
[
i
].
name
,
fst
))
return
fstypes
+
i
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment