From deb50a10dc8c329058f34f32c16e0c69bcf780a9 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 4 Jun 2004 11:02:35 +0300 Subject: [PATCH] Portability fixes (and a typo after last merge) innobase/os/os0file.c: Fixed typo sql/sql_class.h: Portability fix --- innobase/os/os0file.c | 2 +- sql/sql_class.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/innobase/os/os0file.c b/innobase/os/os0file.c index 57e9690d990..469e7c025b6 100644 --- a/innobase/os/os0file.c +++ b/innobase/os/os0file.c @@ -733,7 +733,7 @@ os_file_create_directory( if (!(rcode != 0 || (GetLastError() == ERROR_FILE_EXISTS && !fail_if_exists))) { /* failure */ - os_file_handle_error(Npathname, "CreateDirectory"); + os_file_handle_error(pathname, "CreateDirectory"); return(FALSE); } diff --git a/sql/sql_class.h b/sql/sql_class.h index 26f41b2912f..867d3f49840 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -932,7 +932,7 @@ public: net.last_errno= 0; net.report_error= 0; } - inline bool vio_ok() const { return net.vio; } + inline bool vio_ok() const { return net.vio != 0; } #else void clear_error(); inline bool vio_ok() const { return true; }