Skip to content

Commit d262834

Browse files
committed
MariaRocks port: make key_restore() parameter const
1 parent 274e5be commit d262834

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sql/key.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void key_copy(uchar *to_key, uchar *from_record, KEY *key_info,
176176
@param key_length specifies length of all keyparts that will be restored
177177
*/
178178

179-
void key_restore(uchar *to_record, uchar *from_key, KEY *key_info,
179+
void key_restore(uchar *to_record, const uchar *from_key, KEY *key_info,
180180
uint key_length)
181181
{
182182
uint length;

sql/key.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int find_ref_key(KEY *key, uint key_count, uchar *record, Field *field,
2929
uint *key_length, uint *keypart);
3030
void key_copy(uchar *to_key, uchar *from_record, KEY *key_info, uint key_length,
3131
bool with_zerofill= FALSE);
32-
void key_restore(uchar *to_record, uchar *from_key, KEY *key_info,
32+
void key_restore(uchar *to_record, const uchar *from_key, KEY *key_info,
3333
uint key_length);
3434
bool key_cmp_if_same(TABLE *form,const uchar *key,uint index,uint key_length);
3535
void key_unpack(String *to, TABLE *table, KEY *key);

0 commit comments

Comments
 (0)