summaryrefslogtreecommitdiff
path: root/storage/sphinx
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2018-03-25 14:05:30 +0300
committerMonty <monty@mariadb.org>2018-03-29 14:19:48 +0300
commit75dd94c7cec7672d90cc3d437c1e105cda1d48a6 (patch)
treeb35465512046293c73e4830ab57c09bf59e9fd7c /storage/sphinx
parentd572c19f222f331b0a647fcd6731a494d423a5e0 (diff)
downloadmariadb-git-75dd94c7cec7672d90cc3d437c1e105cda1d48a6.tar.gz
Fixed compiler warnings
Remove compiler warnings in sphinx, item_sum.cc and opt_split.cc
Diffstat (limited to 'storage/sphinx')
-rw-r--r--storage/sphinx/snippets_udf.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/sphinx/snippets_udf.cc b/storage/sphinx/snippets_udf.cc
index 90fde5d9c63..77f76876819 100644
--- a/storage/sphinx/snippets_udf.cc
+++ b/storage/sphinx/snippets_udf.cc
@@ -177,10 +177,10 @@ enum
SEARCHD_WARNING = 3 ///< general success, warning message and command-specific reply follow
};
-#define SPHINXSE_DEFAULT_SCHEME "sphinx"
-#define SPHINXSE_DEFAULT_HOST "127.0.0.1"
+#define SPHINXSE_DEFAULT_SCHEME (char*) "sphinx"
+#define SPHINXSE_DEFAULT_HOST (char*) "127.0.0.1"
#define SPHINXSE_DEFAULT_PORT 9312
-#define SPHINXSE_DEFAULT_INDEX "*"
+#define SPHINXSE_DEFAULT_INDEX (char*) "*"
class CSphBuffer
{
@@ -446,7 +446,7 @@ int CSphUrl::Connect()
uint uServerVersion;
uint uClientVersion = htonl ( SPHINX_SEARCHD_PROTO );
int iSocket = -1;
- char * pError = NULL;
+ const char * pError = NULL;
do
{
iSocket = (int)socket ( iDomain, SOCK_STREAM, 0 );