Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
2ed4680e
Commit
2ed4680e
authored
Jan 01, 1999
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed call to inet_aton.
Rev: src/io.c:1.39
parent
67e412bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/io.c
src/io.c
+1
-1
No files found.
src/io.c
View file @
2ed4680e
...
...
@@ -481,7 +481,7 @@ get_inaddr(struct sockaddr_in * addr,
/* First check for numerical ip-number */
#if 1
/* FIXME: How portable is inet_aton? */
if
(
!
inet_aton
(
host
,
addr
))
if
(
!
inet_aton
(
host
,
&
addr
->
sin_
addr
))
#else
/* TODO: It is wrong to work with ((unsigned long int) -1)
* directly, as this breaks Linux/Alpha systems. But
...
...
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