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
7ed01563
Commit
7ed01563
authored
Feb 10, 2018
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed compiler warnings
parent
76dc6af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
storage/sphinx/ha_sphinx.cc
storage/sphinx/ha_sphinx.cc
+9
-9
No files found.
storage/sphinx/ha_sphinx.cc
View file @
7ed01563
...
...
@@ -1041,8 +1041,8 @@ static bool ParseUrl ( CSphSEShare * share, TABLE * table, bool bCreate )
bool
bOk
=
true
;
bool
bQL
=
false
;
char
*
sScheme
=
NULL
;
char
*
sHost
=
SPHINXAPI_DEFAULT_HOST
;
char
*
sIndex
=
SPHINXAPI_DEFAULT_INDEX
;
char
*
sHost
=
(
char
*
)
SPHINXAPI_DEFAULT_HOST
;
char
*
sIndex
=
(
char
*
)
SPHINXAPI_DEFAULT_INDEX
;
int
iPort
=
SPHINXAPI_DEFAULT_PORT
;
// parse connection string, if any
...
...
@@ -1068,12 +1068,12 @@ static bool ParseUrl ( CSphSEShare * share, TABLE * table, bool bCreate )
sHost
--
;
// reuse last slash
iPort
=
0
;
if
(
!
(
sIndex
=
strrchr
(
sHost
,
':'
)
))
sIndex
=
SPHINXAPI_DEFAULT_INDEX
;
sIndex
=
(
char
*
)
SPHINXAPI_DEFAULT_INDEX
;
else
{
*
sIndex
++
=
'\0'
;
if
(
!*
sIndex
)
sIndex
=
SPHINXAPI_DEFAULT_INDEX
;
sIndex
=
(
char
*
)
SPHINXAPI_DEFAULT_INDEX
;
}
bOk
=
true
;
break
;
...
...
@@ -1095,11 +1095,11 @@ static bool ParseUrl ( CSphSEShare * share, TABLE * table, bool bCreate )
if
(
sIndex
)
*
sIndex
++
=
'\0'
;
else
sIndex
=
SPHINXAPI_DEFAULT_INDEX
;
sIndex
=
(
char
*
)
SPHINXAPI_DEFAULT_INDEX
;
iPort
=
atoi
(
sPort
);
if
(
!
iPort
)
iPort
=
SPHINXAPI_DEFAULT_PORT
;
iPort
=
SPHINXAPI_DEFAULT_PORT
;
}
}
else
{
...
...
@@ -1107,7 +1107,7 @@ static bool ParseUrl ( CSphSEShare * share, TABLE * table, bool bCreate )
if
(
sIndex
)
*
sIndex
++
=
'\0'
;
else
sIndex
=
SPHINXAPI_DEFAULT_INDEX
;
sIndex
=
(
char
*
)
SPHINXAPI_DEFAULT_INDEX
;
}
bOk
=
true
;
break
;
...
...
@@ -1303,8 +1303,8 @@ CSphSEQuery::CSphSEQuery ( const char * sQuery, int iLength, const char * sIndex
,
m_sGeoLongAttr
(
""
)
,
m_fGeoLatitude
(
0.0
f
)
,
m_fGeoLongitude
(
0.0
f
)
,
m_sComment
(
""
)
,
m_sSelect
(
"*"
)
,
m_sComment
(
(
char
*
)
""
)
,
m_sSelect
(
(
char
*
)
"*"
)
,
m_pBuf
(
NULL
)
,
m_pCur
(
NULL
)
...
...
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