Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
685dd2d5
Commit
685dd2d5
authored
Jul 26, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init/initramfs.c: should use umode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
f69aac00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
init/initramfs.c
init/initramfs.c
+4
-4
No files found.
init/initramfs.c
View file @
685dd2d5
...
...
@@ -22,7 +22,7 @@ static void __init error(char *x)
static
__initdata
struct
hash
{
int
ino
,
minor
,
major
;
mode_t
mode
;
u
mode_t
mode
;
struct
hash
*
next
;
char
name
[
N_ALIGN
(
PATH_MAX
)];
}
*
head
[
32
];
...
...
@@ -35,7 +35,7 @@ static inline int hash(int major, int minor, int ino)
}
static
char
__init
*
find_link
(
int
major
,
int
minor
,
int
ino
,
mode_t
mode
,
char
*
name
)
u
mode_t
mode
,
char
*
name
)
{
struct
hash
**
p
,
*
q
;
for
(
p
=
head
+
hash
(
major
,
minor
,
ino
);
*
p
;
p
=
&
(
*
p
)
->
next
)
{
...
...
@@ -120,7 +120,7 @@ static __initdata time_t mtime;
/* cpio header parsing */
static
__initdata
unsigned
long
ino
,
major
,
minor
,
nlink
;
static
__initdata
mode_t
mode
;
static
__initdata
u
mode_t
mode
;
static
__initdata
unsigned
long
body_len
,
name_len
;
static
__initdata
uid_t
uid
;
static
__initdata
gid_t
gid
;
...
...
@@ -276,7 +276,7 @@ static int __init maybe_link(void)
return
0
;
}
static
void
__init
clean_path
(
char
*
path
,
mode_t
mode
)
static
void
__init
clean_path
(
char
*
path
,
u
mode_t
mode
)
{
struct
stat
st
;
...
...
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