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
emacs
emacs
Commits
fe3bfdde
Commit
fe3bfdde
authored
Apr 16, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pop.c (socket_connection): Double-cast to avoid GCC warning
about alignment.
parent
5a9c1e26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
lib-src/ChangeLog
lib-src/ChangeLog
+3
-0
lib-src/pop.c
lib-src/pop.c
+2
-1
No files found.
lib-src/ChangeLog
View file @
fe3bfdde
2011-04-16 Paul Eggert <eggert@cs.ucla.edu>
* pop.c (socket_connection): Double-cast to avoid GCC warning
about alignment.
* movemail.c (mail_spool_name): Protoize.
(main): Remove unused var. Mark var as initialized.
Move locals to avoid shadowing, and use time_t for times.
...
...
lib-src/pop.c
View file @
fe3bfdde
...
...
@@ -1091,7 +1091,8 @@ socket_connection (char *host, int flags)
{
if
(
it
->
ai_addrlen
==
sizeof
(
addr
))
{
struct
sockaddr_in
*
in_a
=
(
struct
sockaddr_in
*
)
it
->
ai_addr
;
struct
sockaddr_in
*
in_a
=
(
struct
sockaddr_in
*
)
(
void
*
)
it
->
ai_addr
;
memcpy
(
&
addr
.
sin_addr
,
&
in_a
->
sin_addr
,
sizeof
(
addr
.
sin_addr
));
if
(
!
connect
(
sock
,
(
struct
sockaddr
*
)
&
addr
,
sizeof
(
addr
)))
break
;
...
...
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