summaryrefslogtreecommitdiff
path: root/storage/connect/osutil.c
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-02-07 17:56:48 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-02-07 17:56:48 +0400
commitf8f79d933462e39b1039d0644dfc7697850501c7 (patch)
tree570473e4aaf79d092131a60e861e68c27a5d5500 /storage/connect/osutil.c
parent40398f3660273a646eb974092a9ddf6f881d700e (diff)
downloadmariadb-git-f8f79d933462e39b1039d0644dfc7697850501c7.tar.gz
Fixing wrong sprintf() calls.
modified: storage/connect/filamap.cpp storage/connect/filamdbf.cpp storage/connect/filamfix.cpp storage/connect/filamtxt.cpp storage/connect/filamvct.cpp storage/connect/ha_connect.cc storage/connect/osutil.c storage/connect/plgdbutl.cpp storage/connect/plugutil.c storage/connect/tabfix.cpp storage/connect/tabxml.cpp storage/connect/user_connect.cc storage/connect/value.cpp storage/connect/xindex.cpp
Diffstat (limited to 'storage/connect/osutil.c')
-rw-r--r--storage/connect/osutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/connect/osutil.c b/storage/connect/osutil.c
index f59f6d2517f..45c834a4cfc 100644
--- a/storage/connect/osutil.c
+++ b/storage/connect/osutil.c
@@ -14,7 +14,7 @@ my_bool CloseFileHandle(HANDLE h)
/* code to handle Linux and Solaris */
#include <unistd.h>
#include <sys/stat.h>
-//#include <ctype.h>
+#include <ctype.h>
#include <fcntl.h>
extern FILE *debug;
@@ -223,7 +223,7 @@ DWORD FormatMessage(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId,
//if (dwFlags & FORMAT_MESSAGE_ALLOCATE_BUFFER)
// return 0; /* means error */
- n = sprintf(buff, "Error code: %d", dwMessageId);
+ n = sprintf(buff, "Error code: %d", (int) dwMessageId);
strncpy(lpBuffer, buff, nSize);
return min(n, nSize);
} /* end of FormatMessage */