From 0045bd9f7b2ea353e0f09a2ea943b88872fbde57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 30 Aug 2016 21:49:38 +0000 Subject: [PATCH] Attempt to fix compiling bug #671 --- lib/ProxySQL_Admin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 3e62e6557..e0110074e 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -424,7 +424,7 @@ bool admin_handler_command_proxysql(char *query_no_space, unsigned int query_no_ proxy_info("Received PROXYSQL PAUSE command\n"); ProxySQL_Admin *SPA=(ProxySQL_Admin *)pa; if (nostart_) { - if (__sync_fetch_and_add(&GloVars.global.nostart,0)) { + if (__sync_fetch_and_add((uint8_t *)(&GloVars.global.nostart),0)) { SPA->send_MySQL_ERR(&sess->client_myds->myprot, (char *)"ProxySQL MySQL module not running, impossible to pause"); return false; } @@ -449,7 +449,7 @@ bool admin_handler_command_proxysql(char *query_no_space, unsigned int query_no_ proxy_info("Received PROXYSQL RESUME command\n"); ProxySQL_Admin *SPA=(ProxySQL_Admin *)pa; if (nostart_) { - if (__sync_fetch_and_add(&GloVars.global.nostart,0)) { + if (__sync_fetch_and_add((uint8_t *)(&GloVars.global.nostart),0)) { SPA->send_MySQL_ERR(&sess->client_myds->myprot, (char *)"ProxySQL MySQL module not running, impossible to resume"); return false; }