Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
45c1dce0
Commit
45c1dce0
authored
Oct 11, 2004
by
Andy Cedilnik
Browse files
COMP: Remove alignment warning
parent
e0778d48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/CTest/Curl/if2ip.c
View file @
45c1dce0
...
...
@@ -111,8 +111,13 @@ char *Curl_if2ip(const char *interface, char *buf, int buf_size)
else
{
struct
in_addr
in
;
struct
sockaddr_in
*
s
=
(
struct
sockaddr_in
*
)
&
req
.
ifr_dstaddr
;
memcpy
(
&
in
,
&
(
s
->
sin_addr
.
s_addr
),
sizeof
(
in
));
union
{
struct
sockaddr_in
*
sin
;
struct
sockaddr
*
s
;
}
soadd
;
soadd
.
s
=
&
req
.
ifr_dstaddr
;
memcpy
(
&
in
,
&
(
soadd
.
sin
->
sin_addr
.
s_addr
),
sizeof
(
in
));
#if defined(HAVE_INET_NTOA_R)
ip
=
inet_ntoa_r
(
in
,
buf
,
buf_size
);
#else
...
...
Write
Preview
Supports
Markdown
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