From dee60c25690117fabb90b497dbe23378b3e00db1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 28 Jan 2011 11:05:01 +0000 Subject: [PATCH] ptoelke: please use this style... --- src/vpn/gnunet-daemon-exit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vpn/gnunet-daemon-exit.c b/src/vpn/gnunet-daemon-exit.c index 6d4a3b69f..08e215093 100644 --- a/src/vpn/gnunet-daemon-exit.c +++ b/src/vpn/gnunet-daemon-exit.c @@ -161,8 +161,7 @@ send_to_network (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) memset(&a4, 0, sizeof(struct sockaddr_in)); a4.sin_family = AF_INET; a4.sin_port = htons(data->state.dpt); - memcpy(&a4.sin_addr.s_addr, (char[]){127, 0, 0, 1}, 4); - + GNUNET_assert (0 == inet_pton (AF_INET, "127.0.0.1", &a4.sin_addr)); GNUNET_NETWORK_socket_sendto (data->sock, pkt + 1, ntohs (pkt->len) - sizeof (struct udp_pkt), (struct sockaddr*)&a4, sizeof a4); -- 2.25.1