Commit fe3bfdde authored by Paul Eggert's avatar Paul Eggert

* pop.c (socket_connection): Double-cast to avoid GCC warning

about alignment.
parent 5a9c1e26
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.
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment