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
Kirill Smelkov
linux
Commits
df8d7106
Commit
df8d7106
authored
Oct 31, 2002
by
Alan Cox
Committed by
Linus Torvalds
Oct 31, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] make afs build with gcc 2.9x
parent
ea10cfeb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fs/afs/dir.c
fs/afs/dir.c
+5
-5
No files found.
fs/afs/dir.c
View file @
df8d7106
...
@@ -72,7 +72,7 @@ typedef union afs_dirent {
...
@@ -72,7 +72,7 @@ typedef union afs_dirent {
u8
name
[
16
];
u8
name
[
16
];
u8
overflow
[
4
];
/* if any char of the name (inc NUL) reaches here, consume
u8
overflow
[
4
];
/* if any char of the name (inc NUL) reaches here, consume
* the next dirent too */
* the next dirent too */
};
}
parts
;
u8
extended_name
[
32
];
u8
extended_name
[
32
];
}
afs_dirent_t
;
}
afs_dirent_t
;
...
@@ -258,7 +258,7 @@ static int afs_dir_iterate_block(unsigned *fpos,
...
@@ -258,7 +258,7 @@ static int afs_dir_iterate_block(unsigned *fpos,
/* got a valid entry */
/* got a valid entry */
dire
=
&
block
->
dirents
[
offset
];
dire
=
&
block
->
dirents
[
offset
];
nlen
=
strnlen
(
dire
->
name
,
sizeof
(
*
block
)
-
offset
*
sizeof
(
afs_dirent_t
));
nlen
=
strnlen
(
dire
->
parts
.
name
,
sizeof
(
*
block
)
-
offset
*
sizeof
(
afs_dirent_t
));
_debug
(
"ENT[%u.%u]: %s %u
\"
%.*s
\"\n
"
,
_debug
(
"ENT[%u.%u]: %s %u
\"
%.*s
\"\n
"
,
blkoff
/
sizeof
(
afs_dir_block_t
),
offset
,
blkoff
/
sizeof
(
afs_dir_block_t
),
offset
,
...
@@ -290,11 +290,11 @@ static int afs_dir_iterate_block(unsigned *fpos,
...
@@ -290,11 +290,11 @@ static int afs_dir_iterate_block(unsigned *fpos,
/* found the next entry */
/* found the next entry */
ret
=
filldir
(
cookie
,
ret
=
filldir
(
cookie
,
dire
->
name
,
dire
->
parts
.
name
,
nlen
,
nlen
,
blkoff
+
offset
*
sizeof
(
afs_dirent_t
),
blkoff
+
offset
*
sizeof
(
afs_dirent_t
),
ntohl
(
dire
->
vnode
),
ntohl
(
dire
->
parts
.
vnode
),
filldir
==
afs_dir_lookup_filldir
?
dire
->
unique
:
DT_UNKNOWN
);
filldir
==
afs_dir_lookup_filldir
?
dire
->
parts
.
unique
:
DT_UNKNOWN
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
_leave
(
" = 0 [full]"
);
_leave
(
" = 0 [full]"
);
return
0
;
return
0
;
...
...
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