diff options
author | Monty <monty@mariadb.org> | 2018-03-25 14:05:30 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-03-26 17:56:09 +0300 |
commit | 2f2e7f8c9db48eba968ce3b9e1f696c3edd4651e (patch) | |
tree | aabda99a696c80e33eaaaa1712474ba2072a82ce /storage/sphinx | |
parent | 8bb51f612e5dbd9598e48bb4d850c2fe55cc05ca (diff) | |
download | mariadb-git-2f2e7f8c9db48eba968ce3b9e1f696c3edd4651e.tar.gz |
Fixed compiler warnings in sphinx
Diffstat (limited to 'storage/sphinx')
-rw-r--r-- | storage/sphinx/snippets_udf.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/sphinx/snippets_udf.cc b/storage/sphinx/snippets_udf.cc index 2a290bd8de9..ea8246c46f3 100644 --- a/storage/sphinx/snippets_udf.cc +++ b/storage/sphinx/snippets_udf.cc @@ -178,10 +178,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 { @@ -447,7 +447,7 @@ int CSphUrl::Connect() uint uServerVersion; uint uClientVersion = htonl ( SPHINX_SEARCHD_PROTO ); int iSocket = -1; - char * pError = NULL; + const char * pError = NULL; do { iSocket = socket ( iDomain, SOCK_STREAM, 0 ); |