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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0f7639ba
Commit
0f7639ba
authored
Jul 20, 2005
by
jani@a193-229-222-105.elisa-laajakaista.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some missing casts and changed a define for alloca().
parent
85643225
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
client/mysqldump.c
client/mysqldump.c
+2
-2
include/my_sys.h
include/my_sys.h
+1
-1
myisam/rt_split.c
myisam/rt_split.c
+3
-2
No files found.
client/mysqldump.c
View file @
0f7639ba
...
...
@@ -2321,9 +2321,9 @@ static int dump_selected_tables(char *db, char **table_names, int tables)
{
const
char
*
table_name
=
hash_element
(
&
dump_tables
,
i
);
DBUG_PRINT
(
"info"
,(
"Dumping table %s"
,
table_name
));
numrows
=
getTableStructure
(
table_name
,
db
);
numrows
=
getTableStructure
(
(
char
*
)
table_name
,
db
);
if
(
!
dFlag
&&
numrows
>
0
)
dumpTable
(
numrows
,
table_name
);
dumpTable
(
numrows
,
(
char
*
)
table_name
);
}
hash_free
(
&
dump_tables
);
my_free
(
order_by
,
MYF
(
MY_ALLOW_ZERO_PTR
));
...
...
include/my_sys.h
View file @
0f7639ba
...
...
@@ -165,7 +165,7 @@ extern char *my_strdup_with_length(const byte *from, uint length,
#endif
/* _AIX */
#if defined(__MWERKS__)
#undef alloca
#define alloca _
_
alloca
#define alloca _alloca
#endif
/* __MWERKS__ */
#if defined(__GNUC__) && !defined(HAVE_ALLOCA_H) && ! defined(alloca)
#define alloca __builtin_alloca
...
...
myisam/rt_split.c
View file @
0f7639ba
...
...
@@ -267,7 +267,8 @@ int rtree_split_page(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key,
n_dim
=
keyinfo
->
keysegs
/
2
;
if
(
!
(
coord_buf
=
my_alloca
(
n_dim
*
2
*
sizeof
(
double
)
*
(
max_keys
+
1
+
4
)
+
if
(
!
(
coord_buf
=
(
double
*
)
my_alloca
(
n_dim
*
2
*
sizeof
(
double
)
*
(
max_keys
+
1
+
4
)
+
sizeof
(
SplitStruct
)
*
(
max_keys
+
1
))))
return
-
1
;
...
...
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