summaryrefslogtreecommitdiff
path: root/storage/maria
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2013-10-29 18:50:36 +0200
committerunknown <sanja@montyprogram.com>2013-10-29 18:50:36 +0200
commit52dea41052bc1be1efbe59c320046d7e62cfd0a6 (patch)
tree515c69dbce80f1af73974286de8f87413b1cad23 /storage/maria
parent86901216fd4f7eb0844e884203810a0e43fcd103 (diff)
parent5ce11d8b4ca2a57968656925a69ed8114d5374f6 (diff)
downloadmariadb-git-52dea41052bc1be1efbe59c320046d7e62cfd0a6.tar.gz
Merge 5.3->5.5
Diffstat (limited to 'storage/maria')
-rw-r--r--storage/maria/ma_checksum.c2
-rw-r--r--storage/maria/ma_key.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/storage/maria/ma_checksum.c b/storage/maria/ma_checksum.c
index 61ec638053a..da2d40d3687 100644
--- a/storage/maria/ma_checksum.c
+++ b/storage/maria/ma_checksum.c
@@ -58,7 +58,7 @@ ha_checksum _ma_checksum(MARIA_HA *info, const uchar *record)
length= _ma_calc_blob_length(blob_size_length, pos);
if (length)
{
- memcpy((char*) &pos, pos + blob_size_length, sizeof(char*));
+ memcpy(&pos, pos + blob_size_length, sizeof(char*));
crc= my_checksum(crc, pos, length);
}
continue;
diff --git a/storage/maria/ma_key.c b/storage/maria/ma_key.c
index f62ffcc49a0..246e5fb6d94 100644
--- a/storage/maria/ma_key.c
+++ b/storage/maria/ma_key.c
@@ -589,7 +589,7 @@ static int _ma_put_key_in_record(register MARIA_HA *info, uint keynr,
if (unpack_blobs)
{
memcpy(record+keyseg->start+keyseg->bit_start,
- (char*) &blob_ptr,sizeof(char*));
+ &blob_ptr, sizeof(char*));
memcpy(blob_ptr,key,length);
blob_ptr+=length;