diff options
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r-- | sql/hostname.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc index 0e8d6e36f0f..47953020ffb 100644 --- a/sql/hostname.cc +++ b/sql/hostname.cc @@ -77,7 +77,7 @@ static void add_hostname(struct in_addr *in,const char *name) host_entry *entry; if (!(entry=(host_entry*) hostname_cache->search((gptr) &in->s_addr,0))) { - uint length=name ? strlen(name) : 0; + uint length=name ? (uint) strlen(name) : 0; if ((entry=(host_entry*) malloc(sizeof(host_entry)+length+1))) { |