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
884b4b8e
Commit
884b4b8e
authored
Apr 03, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Automerge
parents
7539d9d1
4e565367
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
fs/jfs/jfs_dtree.c
fs/jfs/jfs_dtree.c
+6
-8
fs/jfs/jfs_unicode.h
fs/jfs/jfs_unicode.h
+4
-4
No files found.
fs/jfs/jfs_dtree.c
View file @
884b4b8e
...
@@ -3360,9 +3360,8 @@ static int dtCompare(component_t * key, /* search key */
...
@@ -3360,9 +3360,8 @@ static int dtCompare(component_t * key, /* search key */
dtpage_t
*
p
,
/* directory page */
dtpage_t
*
p
,
/* directory page */
int
si
)
int
si
)
{
/* entry slot index */
{
/* entry slot index */
register
int
rc
;
wchar_t
*
kname
,
*
name
;
register
wchar_t
*
kname
,
*
name
;
int
klen
,
namlen
,
len
,
rc
;
register
int
klen
,
namlen
,
len
;
idtentry_t
*
ih
;
idtentry_t
*
ih
;
dtslot_t
*
t
;
dtslot_t
*
t
;
...
@@ -3437,9 +3436,8 @@ static int ciCompare(component_t * key, /* search key */
...
@@ -3437,9 +3436,8 @@ static int ciCompare(component_t * key, /* search key */
int
si
,
/* entry slot index */
int
si
,
/* entry slot index */
int
flag
)
int
flag
)
{
{
register
int
rc
;
wchar_t
*
kname
,
*
name
,
x
;
register
wchar_t
*
kname
,
*
name
,
x
;
int
klen
,
namlen
,
len
,
rc
;
register
int
klen
,
namlen
,
len
;
ldtentry_t
*
lh
;
ldtentry_t
*
lh
;
idtentry_t
*
ih
;
idtentry_t
*
ih
;
dtslot_t
*
t
;
dtslot_t
*
t
;
...
@@ -3543,8 +3541,8 @@ static int ciCompare(component_t * key, /* search key */
...
@@ -3543,8 +3541,8 @@ static int ciCompare(component_t * key, /* search key */
static
void
ciGetLeafPrefixKey
(
dtpage_t
*
lp
,
int
li
,
dtpage_t
*
rp
,
static
void
ciGetLeafPrefixKey
(
dtpage_t
*
lp
,
int
li
,
dtpage_t
*
rp
,
int
ri
,
component_t
*
key
,
int
flag
)
int
ri
,
component_t
*
key
,
int
flag
)
{
{
register
int
klen
,
namlen
;
int
klen
,
namlen
;
register
wchar_t
*
pl
,
*
pr
,
*
kname
;
wchar_t
*
pl
,
*
pr
,
*
kname
;
wchar_t
lname
[
JFS_NAME_MAX
+
1
];
wchar_t
lname
[
JFS_NAME_MAX
+
1
];
component_t
lkey
=
{
0
,
lname
};
component_t
lkey
=
{
0
,
lname
};
wchar_t
rname
[
JFS_NAME_MAX
+
1
];
wchar_t
rname
[
JFS_NAME_MAX
+
1
];
...
...
fs/jfs/jfs_unicode.h
View file @
884b4b8e
...
@@ -106,9 +106,9 @@ static inline wchar_t *UniStrncpy_le(wchar_t * ucs1, const wchar_t * ucs2,
...
@@ -106,9 +106,9 @@ static inline wchar_t *UniStrncpy_le(wchar_t * ucs1, const wchar_t * ucs2,
/*
/*
* UniToupper: Convert a unicode character to upper case
* UniToupper: Convert a unicode character to upper case
*/
*/
static
inline
wchar_t
UniToupper
(
register
wchar_t
uc
)
static
inline
wchar_t
UniToupper
(
wchar_t
uc
)
{
{
register
UNICASERANGE
*
rp
;
UNICASERANGE
*
rp
;
if
(
uc
<
sizeof
(
UniUpperTable
))
{
/* Latin characters */
if
(
uc
<
sizeof
(
UniUpperTable
))
{
/* Latin characters */
return
uc
+
UniUpperTable
[
uc
];
/* Use base tables */
return
uc
+
UniUpperTable
[
uc
];
/* Use base tables */
...
@@ -129,9 +129,9 @@ static inline wchar_t UniToupper(register wchar_t uc)
...
@@ -129,9 +129,9 @@ static inline wchar_t UniToupper(register wchar_t uc)
/*
/*
* UniStrupr: Upper case a unicode string
* UniStrupr: Upper case a unicode string
*/
*/
static
inline
wchar_t
*
UniStrupr
(
register
wchar_t
*
upin
)
static
inline
wchar_t
*
UniStrupr
(
wchar_t
*
upin
)
{
{
register
wchar_t
*
up
;
wchar_t
*
up
;
up
=
upin
;
up
=
upin
;
while
(
*
up
)
{
/* For all characters */
while
(
*
up
)
{
/* For all characters */
...
...
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