From 13e2b12f9ed1641bbab2cc37483e3bc59a2f7429 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Thu, 24 Feb 2011 19:51:37 +0100 Subject: [PATCH] Make proper use of IN6_ARE_ADDR_EQUAL() Pass pointers to sin6_addr instead of passing sin6_addr.s6_addr32 which isn't portable and isn't the proper way to use the macro anyway. --- src/raop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raop.c b/src/raop.c index ae1b1743..8b895f38 100644 --- a/src/raop.c +++ b/src/raop.c @@ -1952,7 +1952,7 @@ raop_v2_timing_cb(int fd, short what, void *arg) for (rs = sessions; rs; rs = rs->next) { if ((rs->sa.ss.ss_family == AF_INET6) - && IN6_ARE_ADDR_EQUAL(sa.sin6.sin6_addr.s6_addr32, rs->sa.sin6.sin6_addr.s6_addr32)) + && IN6_ARE_ADDR_EQUAL(&sa.sin6.sin6_addr, &rs->sa.sin6.sin6_addr)) break; } @@ -2314,7 +2314,7 @@ raop_v2_control_cb(int fd, short what, void *arg) for (rs = sessions; rs; rs = rs->next) { if ((rs->sa.ss.ss_family == AF_INET6) - && IN6_ARE_ADDR_EQUAL(sa.sin6.sin6_addr.s6_addr32, rs->sa.sin6.sin6_addr.s6_addr32)) + && IN6_ARE_ADDR_EQUAL(&sa.sin6.sin6_addr, &rs->sa.sin6.sin6_addr)) break; }