summaryrefslogtreecommitdiff
path: root/sql/hostname.cc
diff options
context:
space:
mode:
authorbar@bar.mysql.r18.ru <>2003-01-29 17:31:20 +0400
committerbar@bar.mysql.r18.ru <>2003-01-29 17:31:20 +0400
commit735399a850528714ba43b6e7aec84aa9a8878321 (patch)
tree264982c7494f97fc034269d9b20c340299092a4b /sql/hostname.cc
parentff3eaaebe742d83aee425a3c6b81c020c16f71cd (diff)
downloadmariadb-git-735399a850528714ba43b6e7aec84aa9a8878321.tar.gz
Move latin1 into a separarte file
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r--sql/hostname.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc
index 0c86c3305b7..0124fa6d060 100644
--- a/sql/hostname.cc
+++ b/sql/hostname.cc
@@ -221,10 +221,10 @@ my_string ip_to_hostname(struct in_addr *in, uint *errors)
/* Don't accept hostnames that starts with digits because they may be
false ip:s */
- if (my_isdigit(my_charset_latin1,name[0]))
+ if (my_isdigit(&my_charset_latin1,name[0]))
{
char *pos;
- for (pos= name+1 ; my_isdigit(my_charset_latin1,*pos); pos++) ;
+ for (pos= name+1 ; my_isdigit(&my_charset_latin1,*pos); pos++) ;
if (*pos == '.')
{
DBUG_PRINT("error",("mysqld doesn't accept hostnames that starts with a number followed by a '.'"));