Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
mariadb
Commits
31ba41df
Commit
31ba41df
authored
Aug 16, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Remove redundant type casts. Change the parameter type
of ut_strcmp() from const void* to const char*.
parent
78618828
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
dict/dict0dict.c
dict/dict0dict.c
+3
-3
include/ut0mem.h
include/ut0mem.h
+1
-1
include/ut0mem.ic
include/ut0mem.ic
+2
-2
os/os0file.c
os/os0file.c
+3
-3
No files found.
dict/dict0dict.c
View file @
31ba41df
...
...
@@ -2164,7 +2164,7 @@ dict_foreign_add_to_cache(
if
(
for_in_cache
->
referenced_table
==
NULL
&&
ref_table
)
{
index
=
dict_foreign_find_index
(
ref_table
,
(
const
char
**
)
for_in_cache
->
referenced_col_names
,
for_in_cache
->
referenced_col_names
,
for_in_cache
->
n_fields
,
for_in_cache
->
foreign_index
,
check_charsets
,
FALSE
);
...
...
@@ -2196,7 +2196,7 @@ dict_foreign_add_to_cache(
if
(
for_in_cache
->
foreign_table
==
NULL
&&
for_table
)
{
index
=
dict_foreign_find_index
(
for_table
,
(
const
char
**
)
for_in_cache
->
foreign_col_names
,
for_in_cache
->
foreign_col_names
,
for_in_cache
->
n_fields
,
for_in_cache
->
referenced_index
,
check_charsets
,
for_in_cache
->
type
...
...
@@ -4359,7 +4359,7 @@ dict_table_find_equivalent_index(
}
equiv_index
=
dict_foreign_find_index
(
table
,
(
const
char
**
)
column_names
,
index
->
n_fields
,
table
,
column_names
,
index
->
n_fields
,
index
,
TRUE
,
FALSE
);
mem_free
(
column_names
);
...
...
include/ut0mem.h
View file @
31ba41df
...
...
@@ -117,7 +117,7 @@ ut_strlen(const char* str);
UNIV_INLINE
int
ut_strcmp
(
const
void
*
str1
,
const
void
*
str2
);
ut_strcmp
(
const
char
*
str1
,
const
char
*
str2
);
/**************************************************************************
Copies up to size - 1 characters from the NUL-terminated string src to
...
...
include/ut0mem.ic
View file @
31ba41df
...
...
@@ -43,9 +43,9 @@ ut_strlen(const char* str)
UNIV_INLINE
int
ut_strcmp(const
void* str1, const void
* str2)
ut_strcmp(const
char* str1, const char
* str2)
{
return(strcmp(
(const char*)str1, (const char*)
str2));
return(strcmp(
str1,
str2));
}
/**************************************************************************
...
...
os/os0file.c
View file @
31ba41df
...
...
@@ -1436,7 +1436,7 @@ loop:
#else
int
ret
;
ret
=
unlink
(
(
const
char
*
)
name
);
ret
=
unlink
(
name
);
if
(
ret
!=
0
&&
errno
!=
ENOENT
)
{
os_file_handle_error_no_exit
(
name
,
"delete"
);
...
...
@@ -1499,7 +1499,7 @@ loop:
#else
int
ret
;
ret
=
unlink
(
(
const
char
*
)
name
);
ret
=
unlink
(
name
);
if
(
ret
!=
0
)
{
os_file_handle_error_no_exit
(
name
,
"delete"
);
...
...
@@ -1538,7 +1538,7 @@ os_file_rename(
#else
int
ret
;
ret
=
rename
(
(
const
char
*
)
oldpath
,
(
const
char
*
)
newpath
);
ret
=
rename
(
oldpath
,
newpath
);
if
(
ret
!=
0
)
{
os_file_handle_error_no_exit
(
oldpath
,
"rename"
);
...
...
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