summaryrefslogtreecommitdiff
path: root/plugin/server_audit
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-02-06 14:22:15 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2018-02-06 14:22:15 +0100
commit502e2445e65929b2af881a8cfe49d8cdeb5b14e1 (patch)
tree2ff91d17f5256b3a11c6853787619fdd29a29fcc /plugin/server_audit
parent6c279ad6a71c63cb595fde7c951aadb31c3dbebc (diff)
downloadmariadb-git-502e2445e65929b2af881a8cfe49d8cdeb5b14e1.tar.gz
Fix warnings
Diffstat (limited to 'plugin/server_audit')
-rw-r--r--plugin/server_audit/server_audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/server_audit/server_audit.c b/plugin/server_audit/server_audit.c
index 38046de61f9..37f0a9776c1 100644
--- a/plugin/server_audit/server_audit.c
+++ b/plugin/server_audit/server_audit.c
@@ -1235,7 +1235,7 @@ static int write_log(const char *message, size_t len)
if (output_type == OUTPUT_FILE)
{
if (logfile &&
- (is_active= (logger_write(logfile, message, len) == len)))
+ (is_active= (logger_write(logfile, message, len) == (ssize_t)len)))
return 0;
++log_write_failures;
return 1;