comparison src/crypt.c @ 15543:dd725a8ab112 v8.1.0779

patch 8.1.0779: argument for message functions is inconsistent commit https://github.com/vim/vim/commit/32526b3c1846025f0e655f41efd4e5428da16b6c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 19 17:43:09 2019 +0100 patch 8.1.0779: argument for message functions is inconsistent Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Jan 2019 17:45:07 +0100
parents 959cf4c63b18
children ddd82b1c9e9d
comparison
equal deleted inserted replaced
15542:5baedae7ca7a 15543:dd725a8ab112
511 crypt_check_method(int method) 511 crypt_check_method(int method)
512 { 512 {
513 if (method < CRYPT_M_BF2) 513 if (method < CRYPT_M_BF2)
514 { 514 {
515 msg_scroll = TRUE; 515 msg_scroll = TRUE;
516 MSG(_("Warning: Using a weak encryption method; see :help 'cm'")); 516 msg(_("Warning: Using a weak encryption method; see :help 'cm'"));
517 } 517 }
518 } 518 }
519 519
520 void 520 void
521 crypt_check_current_method(void) 521 crypt_check_current_method(void)
553 553
554 if (round == twice) 554 if (round == twice)
555 { 555 {
556 if (p2 != NULL && STRCMP(p1, p2) != 0) 556 if (p2 != NULL && STRCMP(p1, p2) != 0)
557 { 557 {
558 MSG(_("Keys don't match!")); 558 msg(_("Keys don't match!"));
559 crypt_free_key(p1); 559 crypt_free_key(p1);
560 crypt_free_key(p2); 560 crypt_free_key(p2);
561 p2 = NULL; 561 p2 = NULL;
562 round = -1; /* do it again */ 562 round = -1; /* do it again */
563 continue; 563 continue;