Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
541f6a4b
Commit
541f6a4b
authored
Sep 06, 2002
by
Per Cederqvist
Browse files
(isc_mktcpaddress): Use INADDR_NONE instead of -1.
parent
0dd02e78
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libraries/libisc-new/src/isc_tcp.c
View file @
541f6a4b
...
...
@@ -153,7 +153,7 @@ isc_mktcpaddress(const char *address,
{
addr
.
sin_family
=
AF_INET
;
addr
.
sin_addr
.
s_addr
=
inet_addr
(
address
);
if
(
addr
.
sin_addr
.
s_addr
==
-
1
)
if
(
addr
.
sin_addr
.
s_addr
==
INADDR_NONE
)
return
NULL
;
}
else
if
((
hp
=
gethostbyname
(
address
))
==
NULL
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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