1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fix warnings

This commit is contained in:
Vladislav Vaintroub
2018-02-06 14:22:15 +01:00
parent 6c279ad6a7
commit 502e2445e6
2 changed files with 2 additions and 2 deletions

View File

@@ -1235,7 +1235,7 @@ static int write_log(const char *message, size_t len)
if (output_type == OUTPUT_FILE) if (output_type == OUTPUT_FILE)
{ {
if (logfile && if (logfile &&
(is_active= (logger_write(logfile, message, len) == len))) (is_active= (logger_write(logfile, message, len) == (ssize_t)len)))
return 0; return 0;
++log_write_failures; ++log_write_failures;
return 1; return 1;

View File

@@ -158,7 +158,7 @@ uint find_type2(const TYPELIB *typelib, const char *x, size_t length,
int pos; int pos;
const char *j; const char *j;
DBUG_ENTER("find_type2"); DBUG_ENTER("find_type2");
DBUG_PRINT("enter",("x: '%.*s' lib: %p", length, x, typelib)); DBUG_PRINT("enter",("x: '%.*s' lib: %p", (int)length, x, typelib));
if (!typelib->count) if (!typelib->count)
{ {