fixing compilation issue with newer mysql code base. issue 66.

pull/86/head
Guy Lichtman 2013-12-14 22:41:54 +02:00
parent a1baf12ebd
commit 9847e647ff
1 changed files with 2 additions and 2 deletions

4
include/audit_handler.h Executable file → Normal file
View File

@ -183,7 +183,7 @@ public:
Security_context * sctx = thd_inst_main_security_ctx(thd);
if(!Audit_formatter::thd_offsets.sec_ctx_ip) //check ip to understand if set as host is first and may actually be set to 0
{
return sctx->host;
return (const char *)sctx->host;
}
return *(const char **) (((unsigned char *) sctx)
+ Audit_formatter::thd_offsets.sec_ctx_host);
@ -194,7 +194,7 @@ public:
Security_context * sctx = thd_inst_main_security_ctx(thd);
if(!Audit_formatter::thd_offsets.sec_ctx_ip) //no offsets use compiled in header
{
return sctx->ip;
return (const char *)sctx->ip;
}
return *(const char **) (((unsigned char *) sctx)
+ Audit_formatter::thd_offsets.sec_ctx_ip);