Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
967bf6d3
Commit
967bf6d3
authored
Jul 28, 2005
by
joerg@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge of 5.0.10a back to the general tree.
parents
f0f2738c
bcace631
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sql/hostname.cc
sql/hostname.cc
+2
-2
No files found.
sql/hostname.cc
View file @
967bf6d3
...
@@ -143,8 +143,8 @@ my_string ip_to_hostname(struct in_addr *in, uint *errors)
...
@@ -143,8 +143,8 @@ my_string ip_to_hostname(struct in_addr *in, uint *errors)
*
errors
=
0
;
*
errors
=
0
;
/* We always treat the loopback address as "localhost". */
/* We always treat the loopback address as "localhost". */
if
(
in
->
s_addr
==
INADDR_LOOPBACK
)
if
(
in
->
s_addr
==
htonl
(
INADDR_LOOPBACK
))
// is expanded inline by gcc
return
(
char
*
)
my_localhost
;
DBUG_RETURN
((
char
*
)
my_localhost
)
;
/* Check first if we have name in cache */
/* Check first if we have name in cache */
if
(
!
(
specialflag
&
SPECIAL_NO_HOST_CACHE
))
if
(
!
(
specialflag
&
SPECIAL_NO_HOST_CACHE
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment