summaryrefslogtreecommitdiff
path: root/sql/hostname.cc
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2010-07-23 17:17:55 -0300
committerDavi Arnaut <davi.arnaut@oracle.com>2010-07-23 17:17:55 -0300
commite81506971f2c465f583e3f6f23857f50a88c48de (patch)
treeb3bf82e28ac654006ee9f366503dd6a64386db14 /sql/hostname.cc
parent68cd3bce9c04b2e0bef3521b51b881c5ba3068e6 (diff)
downloadmariadb-git-e81506971f2c465f583e3f6f23857f50a88c48de.tar.gz
WL#5498: Remove dead and unused source code
Remove workarounds for ancient systems.
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 d309efc4196..5311d9ada73 100644
--- a/sql/hostname.cc
+++ b/sql/hostname.cc
@@ -126,7 +126,7 @@ static void prepare_hostname_cache_key(const char *ip_string,
DBUG_ASSERT(ip_string_length < HOST_ENTRY_KEY_SIZE);
memset(ip_key, 0, HOST_ENTRY_KEY_SIZE);
- memcpy_fixed(ip_key, ip_string, ip_string_length);
+ memcpy(ip_key, ip_string, ip_string_length);
}
static inline Host_entry *hostname_cache_search(const char *ip_key)
@@ -148,7 +148,7 @@ static bool add_hostname_impl(const char *ip_key, const char *hostname)
char *hostname_copy;
- memcpy_fixed(&entry->ip_key, ip_key, HOST_ENTRY_KEY_SIZE);
+ memcpy(&entry->ip_key, ip_key, HOST_ENTRY_KEY_SIZE);
if (hostname_size)
{