Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
1555f180
Commit
1555f180
authored
Dec 20, 2013
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make 5.1 compiling with modern gcc.
parent
f534708b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
9 deletions
+9
-9
mysys/md5.c
mysys/md5.c
+1
-1
sql/field.cc
sql/field.cc
+2
-2
storage/maria/ma_blockrec.c
storage/maria/ma_blockrec.c
+1
-1
storage/maria/ma_checksum.c
storage/maria/ma_checksum.c
+1
-1
storage/maria/ma_key.c
storage/maria/ma_key.c
+1
-1
storage/myisam/mi_checksum.c
storage/myisam/mi_checksum.c
+1
-1
storage/myisam/mi_key.c
storage/myisam/mi_key.c
+1
-1
storage/pbxt/src/myxt_xt.cc
storage/pbxt/src/myxt_xt.cc
+1
-1
No files found.
mysys/md5.c
View file @
1555f180
...
@@ -176,7 +176,7 @@ my_MD5Final (unsigned char digest[16], my_MD5Context *ctx)
...
@@ -176,7 +176,7 @@ my_MD5Final (unsigned char digest[16], my_MD5Context *ctx)
putu32
(
ctx
->
buf
[
1
],
digest
+
4
);
putu32
(
ctx
->
buf
[
1
],
digest
+
4
);
putu32
(
ctx
->
buf
[
2
],
digest
+
8
);
putu32
(
ctx
->
buf
[
2
],
digest
+
8
);
putu32
(
ctx
->
buf
[
3
],
digest
+
12
);
putu32
(
ctx
->
buf
[
3
],
digest
+
12
);
memset
(
ctx
,
0
,
sizeof
(
ctx
));
/* In case it's sensitive */
memset
(
ctx
,
0
,
sizeof
(
*
ctx
));
/* In case it's sensitive */
}
}
#ifndef ASM_MD5
#ifndef ASM_MD5
...
...
sql/field.cc
View file @
1555f180
...
@@ -7709,7 +7709,7 @@ int Field_blob::store(const char *from,uint length,CHARSET_INFO *cs)
...
@@ -7709,7 +7709,7 @@ int Field_blob::store(const char *from,uint length,CHARSET_INFO *cs)
if
(
!
String
::
needs_conversion
(
length
,
cs
,
field_charset
,
&
dummy_offset
))
if
(
!
String
::
needs_conversion
(
length
,
cs
,
field_charset
,
&
dummy_offset
))
{
{
Field_blob
::
store_length
(
length
);
Field_blob
::
store_length
(
length
);
bmove
(
ptr
+
packlength
,(
char
*
)
&
from
,
sizeof
(
char
*
));
bmove
(
ptr
+
packlength
,
&
from
,
sizeof
(
char
*
));
return
0
;
return
0
;
}
}
if
(
tmpstr
.
copy
(
from
,
length
,
cs
))
if
(
tmpstr
.
copy
(
from
,
length
,
cs
))
...
@@ -8364,7 +8364,7 @@ int Field_geom::store(const char *from, uint length, CHARSET_INFO *cs)
...
@@ -8364,7 +8364,7 @@ int Field_geom::store(const char *from, uint length, CHARSET_INFO *cs)
value
.
copy
(
from
,
length
,
cs
);
value
.
copy
(
from
,
length
,
cs
);
from
=
value
.
ptr
();
from
=
value
.
ptr
();
}
}
bmove
(
ptr
+
packlength
,
(
char
*
)
&
from
,
sizeof
(
char
*
));
bmove
(
ptr
+
packlength
,
&
from
,
sizeof
(
char
*
));
}
}
return
0
;
return
0
;
...
...
storage/maria/ma_blockrec.c
View file @
1555f180
...
@@ -7154,7 +7154,7 @@ my_bool _ma_apply_undo_row_delete(MARIA_HA *info, LSN undo_lsn,
...
@@ -7154,7 +7154,7 @@ my_bool _ma_apply_undo_row_delete(MARIA_HA *info, LSN undo_lsn,
memcpy
(
field_pos
,
field_length_data
,
size_length
);
memcpy
(
field_pos
,
field_length_data
,
size_length
);
field_length_data
+=
size_length
;
field_length_data
+=
size_length
;
memcpy
(
field_pos
+
size_length
,
&
header
,
sizeof
(
&
header
));
memcpy
(
field_pos
+
size_length
,
&
header
,
sizeof
(
header
));
header
+=
blob_length
;
header
+=
blob_length
;
*
blob_lengths
++=
blob_length
;
*
blob_lengths
++=
blob_length
;
break
;
break
;
...
...
storage/maria/ma_checksum.c
View file @
1555f180
...
@@ -58,7 +58,7 @@ ha_checksum _ma_checksum(MARIA_HA *info, const uchar *record)
...
@@ -58,7 +58,7 @@ ha_checksum _ma_checksum(MARIA_HA *info, const uchar *record)
length
=
_ma_calc_blob_length
(
blob_size_length
,
pos
);
length
=
_ma_calc_blob_length
(
blob_size_length
,
pos
);
if
(
length
)
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
);
crc
=
my_checksum
(
crc
,
pos
,
length
);
}
}
continue
;
continue
;
...
...
storage/maria/ma_key.c
View file @
1555f180
...
@@ -583,7 +583,7 @@ static int _ma_put_key_in_record(register MARIA_HA *info, uint keynr,
...
@@ -583,7 +583,7 @@ static int _ma_put_key_in_record(register MARIA_HA *info, uint keynr,
goto
err
;
goto
err
;
#endif
#endif
memcpy
(
record
+
keyseg
->
start
+
keyseg
->
bit_start
,
memcpy
(
record
+
keyseg
->
start
+
keyseg
->
bit_start
,
(
char
*
)
&
blob_ptr
,
sizeof
(
char
*
));
&
blob_ptr
,
sizeof
(
char
*
));
memcpy
(
blob_ptr
,
key
,
length
);
memcpy
(
blob_ptr
,
key
,
length
);
blob_ptr
+=
length
;
blob_ptr
+=
length
;
...
...
storage/myisam/mi_checksum.c
View file @
1555f180
...
@@ -40,7 +40,7 @@ ha_checksum mi_checksum(MI_INFO *info, const uchar *buf)
...
@@ -40,7 +40,7 @@ ha_checksum mi_checksum(MI_INFO *info, const uchar *buf)
length
=
_mi_calc_blob_length
(
column
->
length
-
length
=
_mi_calc_blob_length
(
column
->
length
-
portable_sizeof_char_ptr
,
portable_sizeof_char_ptr
,
buf
);
buf
);
memcpy
(
(
char
*
)
&
pos
,
buf
+
column
->
length
-
portable_sizeof_char_ptr
,
memcpy
(
&
pos
,
buf
+
column
->
length
-
portable_sizeof_char_ptr
,
sizeof
(
char
*
));
sizeof
(
char
*
));
break
;
break
;
}
}
...
...
storage/myisam/mi_key.c
View file @
1555f180
...
@@ -419,7 +419,7 @@ static int _mi_put_key_in_record(register MI_INFO *info, uint keynr,
...
@@ -419,7 +419,7 @@ static int _mi_put_key_in_record(register MI_INFO *info, uint keynr,
goto
err
;
goto
err
;
#endif
#endif
memcpy
(
record
+
keyseg
->
start
+
keyseg
->
bit_start
,
memcpy
(
record
+
keyseg
->
start
+
keyseg
->
bit_start
,
(
char
*
)
&
blob_ptr
,
sizeof
(
char
*
));
&
blob_ptr
,
sizeof
(
char
*
));
memcpy
(
blob_ptr
,
key
,
length
);
memcpy
(
blob_ptr
,
key
,
length
);
blob_ptr
+=
length
;
blob_ptr
+=
length
;
...
...
storage/pbxt/src/myxt_xt.cc
View file @
1555f180
...
@@ -937,7 +937,7 @@ xtPublic xtBool myxt_create_row_from_key(XTOpenTablePtr XT_UNUSED(ot), XTIndexPt
...
@@ -937,7 +937,7 @@ xtPublic xtBool myxt_create_row_from_key(XTOpenTablePtr XT_UNUSED(ot), XTIndexPt
*/
*/
byte
*
key_ptr
=
key
;
// Cannot take the address of a register variable!
byte
*
key_ptr
=
key
;
// Cannot take the address of a register variable!
memcpy
(
record
+
keyseg
->
start
+
keyseg
->
bit_start
,
memcpy
(
record
+
keyseg
->
start
+
keyseg
->
bit_start
,
(
char
*
)
&
key_ptr
,
sizeof
(
char
*
));
&
key_ptr
,
sizeof
(
char
*
));
my_store_blob_length
(
record
+
keyseg
->
start
,
my_store_blob_length
(
record
+
keyseg
->
start
,
(
uint
)
keyseg
->
bit_start
,
length
);
(
uint
)
keyseg
->
bit_start
,
length
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment