summaryrefslogtreecommitdiff
path: root/storage/connect/filamvct.cpp
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/filamvct.cpp
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/filamvct.cpp')
-rw-r--r--storage/connect/filamvct.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/storage/connect/filamvct.cpp b/storage/connect/filamvct.cpp
index 9d4a20db10c..4bc7ecf5903 100644
--- a/storage/connect/filamvct.cpp
+++ b/storage/connect/filamvct.cpp
@@ -899,7 +899,7 @@ bool VCTFAM::MoveIntermediateLines(PGLOBAL g, bool *b)
#endif
if (len != req) {
- sprintf(g->Message, MSG(DEL_READ_ERROR), req, len);
+ sprintf(g->Message, MSG(DEL_READ_ERROR), (int) req, (int) len);
return true;
} // endif len
@@ -1179,7 +1179,7 @@ bool VCTFAM::ReadBlock(PGLOBAL g, PVCTCOL colp)
if (n != (size_t)Nrec) {
if (errno == NO_ERROR)
- sprintf(g->Message, MSG(BAD_READ_NUMBER), n, To_File);
+ sprintf(g->Message, MSG(BAD_READ_NUMBER), (int) n, To_File);
else
sprintf(g->Message, MSG(READ_ERROR),
To_File, strerror(errno));
@@ -1362,7 +1362,7 @@ bool VCMFAM::OpenTableFile(PGLOBAL g)
if (!(*g->Message))
sprintf(g->Message, MSG(OPEN_MODE_ERROR),
- "map", rc, filename);
+ "map", (int) rc, filename);
#ifdef DEBTRACE
htrc("%s\n", g->Message);
@@ -2348,7 +2348,7 @@ bool VECFAM::MoveIntermediateLines(PGLOBAL g, bool *bn)
#endif
if (len != req) {
- sprintf(g->Message, MSG(DEL_READ_ERROR), req, len);
+ sprintf(g->Message, MSG(DEL_READ_ERROR), (int) req, (int) len);
return true;
} // endif len
@@ -2533,7 +2533,7 @@ bool VECFAM::ReadBlock(PGLOBAL g, PVCTCOL colp)
#else // !WIN32
if (errno == NO_ERROR)
#endif // !WIN32
- sprintf(g->Message, MSG(BAD_READ_NUMBER), n, fn);
+ sprintf(g->Message, MSG(BAD_READ_NUMBER), (int) n, fn);
else
sprintf(g->Message, MSG(READ_ERROR),
fn, strerror(errno));
@@ -2759,7 +2759,7 @@ bool VMPFAM::MapColumnFile(PGLOBAL g, MODE mode, int i)
if (!(*g->Message))
sprintf(g->Message, MSG(OPEN_MODE_ERROR),
- "map", rc, filename);
+ "map", (int) rc, filename);
#ifdef DEBTRACE
htrc("%s\n", g->Message);
#endif