Fix build failures on CentOS 6

Removed superfluous thread_local storage specifier from adminusers.cc and
fixed signed to unsigned integer comparisons in qc_sqlite.cc.
This commit is contained in:
Markus Mäkelä
2017-08-02 15:42:05 +03:00
parent 7d8407ff22
commit 92bc3f046e
2 changed files with 3 additions and 3 deletions

View File

@ -518,7 +518,7 @@ bool admin_linux_account_enabled(const char *uname)
void mxs_crypt(const char* password, const char* salt, char* output)
{
#if HAVE_GLIBC
thread_local struct crypt_data cdata;
struct crypt_data cdata;
cdata.initialized = 0;
char* pw = crypt_r(password, salt, &cdata);
snprintf(output, MXS_CRYPT_SIZE, "%s", pw);