summaryrefslogtreecommitdiff
path: root/sql/hostname.cc
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-12-12 04:34:56 +0200
committermonty@donna.mysql.com <>2000-12-12 04:34:56 +0200
commit10693572ed91eae3e98419b7730f10162b9c3ac2 (patch)
tree3c78736b50f99b9b8ac968afb833752f201a482a /sql/hostname.cc
parent60dc7eabc9d3d1e89a23e9fdf18bdb134dc8eb75 (diff)
downloadmariadb-git-10693572ed91eae3e98419b7730f10162b9c3ac2.tar.gz
Fixed delete in tables with hidden primary key
Remove not used BDB logs on shutdown Don't give warnings for repair on slaves Fixed transaction log files
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r--sql/hostname.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc
index 1c52a5363d3..fcf8d2753b8 100644
--- a/sql/hostname.cc
+++ b/sql/hostname.cc
@@ -123,6 +123,7 @@ void reset_host_errors(struct in_addr *in)
my_string ip_to_hostname(struct in_addr *in, uint *errors)
{
+ uint i;
host_entry *entry;
DBUG_ENTER("ip_to_hostname");
@@ -222,7 +223,7 @@ my_string ip_to_hostname(struct in_addr *in, uint *errors)
}
/* Check that 'gethostbyname' returned the used ip */
- for (uint i=0; check->h_addr_list[i]; i++)
+ for (i=0; check->h_addr_list[i]; i++)
{
if (*(uint32*)(check->h_addr_list)[i] == in->s_addr)
{