summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <monty@butch.>2002-11-07 12:49:01 +0200
committerunknown <monty@butch.>2002-11-07 12:49:01 +0200
commit8d0d518ceda975ba53f2cc94b01250f642ae6f11 (patch)
tree735a853cc51cb8bebe0ea3e7c79b1a381088f96d /innobase
parent4060f083076dcac09a37148d2f733b33fa825f2b (diff)
parentc88b91020866b1505404157c76c56cbb92410ec5 (diff)
downloadmariadb-git-8d0d518ceda975ba53f2cc94b01250f642ae6f11.tar.gz
merge
configure.in: Auto merged sql/field.cc: Auto merged sql/ha_innodb.cc: Auto merged sql/item_func.cc: Auto merged sql/log.cc: Auto merged sql/mysqld.cc: Auto merged sql/slave.cc: Auto merged sql/sql_acl.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_insert.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_update.cc: Auto merged
Diffstat (limited to 'innobase')
-rw-r--r--innobase/include/ut0ut.h1
-rw-r--r--innobase/log/log0log.c4
-rw-r--r--innobase/rem/rem0cmp.c2
-rw-r--r--innobase/trx/trx0sys.c2
4 files changed, 5 insertions, 4 deletions
diff --git a/innobase/include/ut0ut.h b/innobase/include/ut0ut.h
index 8ec23b23dcd..d4697c47266 100644
--- a/innobase/include/ut0ut.h
+++ b/innobase/include/ut0ut.h
@@ -10,6 +10,7 @@ Created 1/20/1994 Heikki Tuuri
#define ut0ut_h
#include "univ.i"
+#include <string.h>
#include <time.h>
#ifndef MYSQL_SERVER
#include <ctype.h>
diff --git a/innobase/log/log0log.c b/innobase/log/log0log.c
index c798a08e2de..f9b785ccbd5 100644
--- a/innobase/log/log0log.c
+++ b/innobase/log/log0log.c
@@ -1654,8 +1654,8 @@ log_reset_first_header_and_checkpoint(
lsn = ut_dulint_add(start, LOG_BLOCK_HDR_SIZE);
/* Write the label of ibbackup --restore */
- sprintf(hdr_buf + LOG_FILE_WAS_CREATED_BY_HOT_BACKUP, "ibbackup ");
- ut_sprintf_timestamp(hdr_buf + LOG_FILE_WAS_CREATED_BY_HOT_BACKUP
+ sprintf((char*) hdr_buf + LOG_FILE_WAS_CREATED_BY_HOT_BACKUP, "ibbackup ");
+ ut_sprintf_timestamp((char*) hdr_buf + LOG_FILE_WAS_CREATED_BY_HOT_BACKUP
+ strlen("ibbackup "));
buf = hdr_buf + LOG_CHECKPOINT_1;
diff --git a/innobase/rem/rem0cmp.c b/innobase/rem/rem0cmp.c
index c50516dfc8b..e9740d7ea78 100644
--- a/innobase/rem/rem0cmp.c
+++ b/innobase/rem/rem0cmp.c
@@ -353,7 +353,7 @@ cmp_data_data_slow(
data2++;
}
- return(0);
+ return(0); /* Not reached */
}
/*****************************************************************
diff --git a/innobase/trx/trx0sys.c b/innobase/trx/trx0sys.c
index 33c962772e8..19cf52c8676 100644
--- a/innobase/trx/trx0sys.c
+++ b/innobase/trx/trx0sys.c
@@ -474,7 +474,7 @@ trx_sys_update_mysql_binlog_offset(
mlog_write_string(sys_header + field
+ TRX_SYS_MYSQL_LOG_NAME,
- file_name, 1 + ut_strlen(file_name), mtr);
+ (byte*) file_name, 1 + ut_strlen(file_name), mtr);
}
if (mach_read_from_4(sys_header + field