summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@sun.com>2009-10-27 12:37:57 +0400
committerSergey Vojtovich <svoj@sun.com>2009-10-27 12:37:57 +0400
commitcf41b43b8e4f129419b5e02dc1daf73db5c86349 (patch)
treee7fae1ccd4d50e3e856b948ad11d478a228e8aaa /sql/sql_acl.cc
parentdd02c4a12b1c210d65dbf940e0d5b59aa65b6326 (diff)
downloadmariadb-git-cf41b43b8e4f129419b5e02dc1daf73db5c86349.tar.gz
An addition to fix for
BUG#41597 - After rename of user, there are additional grants when grants are reapplied. Fixed build failure on Windows. Added missing cast.
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index 8f1e2c70fe6..720fc659b60 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -5206,8 +5206,8 @@ static int handle_grant_struct(uint struct_no, bool drop,
is renamed, the hash key is changed. Update the hash to
ensure that the position matches the new hash key value
*/
- hash_update(&column_priv_hash, (byte *)grant_name,
- grant_name->hash_key, grant_name->key_length);
+ hash_update(&column_priv_hash, (byte*) grant_name,
+ (byte *) grant_name->hash_key, grant_name->key_length);
break;
}
}