summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <osku@127.(none)>2005-09-27 09:42:41 +0300
committerunknown <osku@127.(none)>2005-09-27 09:42:41 +0300
commitbb292ca1399869d6e65900d385627d03988ab7b2 (patch)
treec15a7ea8996578430e837717dba35f82527f8be4 /innobase
parent6f126ba4d0964304937f5a26d7e33c56933fe42b (diff)
downloadmariadb-git-bb292ca1399869d6e65900d385627d03988ab7b2.tar.gz
InnoDB: Fix compile warning.
innobase/include/trx0trx.h: Change trx_set_detailed_error's second argument to const char*. innobase/trx/trx0trx.c: Change trx_set_detailed_error's second argument to const char*.
Diffstat (limited to 'innobase')
-rw-r--r--innobase/include/trx0trx.h4
-rw-r--r--innobase/trx/trx0trx.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/innobase/include/trx0trx.h b/innobase/include/trx0trx.h
index 964491f747b..0dc82893ad1 100644
--- a/innobase/include/trx0trx.h
+++ b/innobase/include/trx0trx.h
@@ -61,8 +61,8 @@ Set detailed error message for the transaction. */
void
trx_set_detailed_error(
/*===================*/
- trx_t* trx, /* in: transaction struct */
- char* msg); /* in: detailed error message */
+ trx_t* trx, /* in: transaction struct */
+ const char* msg); /* in: detailed error message */
/*****************************************************************
Set detailed error message for the transaction from a file. Note that the
file is rewinded before reading from it. */
diff --git a/innobase/trx/trx0trx.c b/innobase/trx/trx0trx.c
index 10b95179a73..090057f5d46 100644
--- a/innobase/trx/trx0trx.c
+++ b/innobase/trx/trx0trx.c
@@ -58,8 +58,8 @@ Set detailed error message for the transaction. */
void
trx_set_detailed_error(
/*===================*/
- trx_t* trx, /* in: transaction struct */
- char* msg) /* in: detailed error message */
+ trx_t* trx, /* in: transaction struct */
+ const char* msg) /* in: detailed error message */
{
ut_strlcpy(trx->detailed_error, msg, sizeof(trx->detailed_error));
}