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
f6d3d2fe
Commit
f6d3d2fe
authored
Jan 10, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warnings.
include/plugin.h: mysql_plugin_declaration contains 9 elements now.
parent
a670199a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
include/plugin.h
include/plugin.h
+1
-1
plugin/fulltext/plugin_example.c
plugin/fulltext/plugin_example.c
+7
-5
No files found.
include/plugin.h
View file @
f6d3d2fe
...
...
@@ -41,7 +41,7 @@
int _mysql_plugin_interface_version_= MYSQL_PLUGIN_INTERFACE_VERSION; \
int _mysql_sizeof_struct_st_plugin_= sizeof(struct st_mysql_plugin); \
struct st_mysql_plugin _mysql_plugin_declarations_[]= {
#define mysql_declare_plugin_end ,{0,0,0,0,0,0,0,0}}
#define mysql_declare_plugin_end ,{0,0,0,0,0,0,0,0
,0
}}
/*
declarations for SHOW STATUS support in plugins
...
...
plugin/fulltext/plugin_example.c
View file @
f6d3d2fe
...
...
@@ -98,7 +98,8 @@ static int simple_parser_plugin_deinit(void)
1 failure (cannot happen)
*/
static
int
simple_parser_init
(
MYSQL_FTPARSER_PARAM
*
param
)
static
int
simple_parser_init
(
MYSQL_FTPARSER_PARAM
*
param
__attribute__
((
unused
)))
{
return
(
0
);
}
...
...
@@ -118,7 +119,8 @@ static int simple_parser_init(MYSQL_FTPARSER_PARAM *param)
1 failure (cannot happen)
*/
static
int
simple_parser_deinit
(
MYSQL_FTPARSER_PARAM
*
param
)
static
int
simple_parser_deinit
(
MYSQL_FTPARSER_PARAM
*
param
__attribute__
((
unused
)))
{
return
(
0
);
}
...
...
@@ -179,7 +181,7 @@ int simple_parser_parse(MYSQL_FTPARSER_PARAM *param)
add_word
(
param
,
start
,
end
-
start
);
break
;
}
else
if
(
isspace
(
*
end
))
else
if
(
my_isspace
(
param
->
cs
,
*
end
))
{
if
(
end
>
start
)
add_word
(
param
,
start
,
end
-
start
);
...
...
@@ -208,7 +210,7 @@ static struct st_mysql_ftparser simple_parser_descriptor=
struct
st_mysql_show_var
simple_status
[]
=
{
{
"static"
,
"just a static text"
,
SHOW_CHAR
},
{
"static"
,
(
char
*
)
"just a static text"
,
SHOW_CHAR
},
{
"called"
,
(
char
*
)
&
number_of_calls
,
SHOW_LONG
},
{
0
,
0
,
0
}
};
...
...
@@ -227,6 +229,6 @@ mysql_declare_plugin
simple_parser_plugin_init
,
/* init function (when loaded) */
simple_parser_plugin_deinit
,
/* deinit function (when unloaded) */
0x0001
,
/* version */
&
simple_status
/* status variables */
simple_status
/* status variables */
}
mysql_declare_plugin_end
;
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