summaryrefslogtreecommitdiff
path: root/plugin/simple_password_check
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-10-27 11:53:05 +0200
committerSergei Golubchik <serg@mariadb.org>2018-10-31 16:06:16 +0100
commit0e388d43a7efe7b68903808fa8bdb521d31aa069 (patch)
tree322dae724eff69975abc61fa2cdb011707643e10 /plugin/simple_password_check
parent1cc03e1f198eafe25f9dfbc1c0f32b4db251f3bf (diff)
downloadmariadb-git-0e388d43a7efe7b68903808fa8bdb521d31aa069.tar.gz
cleanup: add 'const' to password validation API
Diffstat (limited to 'plugin/simple_password_check')
-rw-r--r--plugin/simple_password_check/simple_password_check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/simple_password_check/simple_password_check.c b/plugin/simple_password_check/simple_password_check.c
index 5a76c3d3005..2d298f0efa9 100644
--- a/plugin/simple_password_check/simple_password_check.c
+++ b/plugin/simple_password_check/simple_password_check.c
@@ -22,8 +22,8 @@
static unsigned min_length, min_digits, min_letters, min_others;
-static int validate(MYSQL_CONST_LEX_STRING *username,
- MYSQL_CONST_LEX_STRING *password)
+static int validate(const MYSQL_CONST_LEX_STRING *username,
+ const MYSQL_CONST_LEX_STRING *password)
{
unsigned digits=0 , uppers=0 , lowers=0, others=0, length= (unsigned)password->length;
const char *ptr= password->str, *end= ptr + length;