@@ -128,7 +128,7 @@ static Exit_status safe_connect();
128128class Load_log_processor
129129{
130130 char target_dir_name[FN_REFLEN];
131- int target_dir_name_len;
131+ size_t target_dir_name_len;
132132
133133 /*
134134 When we see first event corresponding to some LOAD DATA statement in
@@ -285,9 +285,9 @@ class Load_log_processor
285285 File prepare_new_file_for_old_format (Load_log_event *le, char *filename);
286286 Exit_status load_old_format_file (NET* net, const char *server_fname,
287287 uint server_fname_len, File file);
288- Exit_status process_first_event (const char *bname, uint blen,
288+ Exit_status process_first_event (const char *bname, size_t blen,
289289 const uchar *block,
290- uint block_len, uint file_id,
290+ size_t block_len, uint file_id,
291291 Create_file_log_event *ce);
292292};
293293
@@ -305,7 +305,7 @@ class Load_log_processor
305305File Load_log_processor::prepare_new_file_for_old_format (Load_log_event *le,
306306 char *filename)
307307{
308- uint len;
308+ size_t len;
309309 char *tail;
310310 File file;
311311
@@ -319,7 +319,7 @@ File Load_log_processor::prepare_new_file_for_old_format(Load_log_event *le,
319319 return -1 ;
320320 }
321321
322- le->set_fname_outside_temp_buf (filename,len+strlen (tail));
322+ le->set_fname_outside_temp_buf (filename,len+(uint) strlen (tail));
323323
324324 return file;
325325}
@@ -411,9 +411,9 @@ Exit_status Load_log_processor::load_old_format_file(NET* net,
411411 @retval OK_CONTINUE No error, the program should continue.
412412*/
413413Exit_status Load_log_processor::process_first_event (const char *bname,
414- uint blen,
414+ size_t blen,
415415 const uchar *block,
416- uint block_len,
416+ size_t block_len,
417417 uint file_id,
418418 Create_file_log_event *ce)
419419{
@@ -456,7 +456,7 @@ Exit_status Load_log_processor::process_first_event(const char *bname,
456456 }
457457
458458 if (ce)
459- ce->set_fname_outside_temp_buf (fname, strlen (fname));
459+ ce->set_fname_outside_temp_buf (fname, (uint) strlen (fname));
460460
461461 if (my_write (file, (uchar*)block, block_len, MYF (MY_WME|MY_NABP)))
462462 {
@@ -1189,7 +1189,7 @@ static my_time_t convert_str_to_timestamp(const char* str)
11891189 long dummy_my_timezone;
11901190 my_bool dummy_in_dst_time_gap;
11911191 /* We require a total specification (date AND time) */
1192- if (str_to_datetime (str, strlen (str), &l_time, 0 , &was_cut) !=
1192+ if (str_to_datetime (str, (uint) strlen (str), &l_time, 0 , &was_cut) !=
11931193 MYSQL_TIMESTAMP_DATETIME || was_cut)
11941194 {
11951195 error (" Incorrect date and time argument: %s" , str);
0 commit comments