Commit 75fad9dc authored by Michael Widenius's avatar Michael Widenius

Fixed compiler warnings

parent f2ca9c87
......@@ -1012,8 +1012,9 @@ vi_histedit(EditLine *el, int c __attribute__((__unused__)))
if (fd < 0)
return CC_ERROR;
cp = el->el_line.buffer;
write(fd, cp, el->el_line.lastchar - cp +0u);
write(fd, "\n", 1);
if (write(fd, cp, el->el_line.lastchar - cp +0u) == -1 ||
write(fd, "\n", 1) == -1)
return CC_ERROR;
pid = fork();
switch (pid) {
case -1:
......
......@@ -2196,7 +2196,7 @@ buf_page_get_gen(
ulint fix_type;
ibool must_read;
ulint retries = 0;
mutex_t* block_mutex;
mutex_t* block_mutex= 0;
trx_t* trx = NULL;
ulint sec;
ulint ms;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment