]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
forecast: Explicitly cast sockaddr to fix compiler warning
authorTobias Brunner <tobias@strongswan.org>
Mon, 23 Feb 2015 11:13:56 +0000 (12:13 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 23 Feb 2015 11:35:50 +0000 (12:35 +0100)
On Travis we compile with -Werror.

src/libcharon/plugins/forecast/forecast_listener.c

index 186378be15c54d8129e4ce2b491e88942499f67f..35962c294635020a30296e897827119f28d14ef4 100644 (file)
@@ -639,7 +639,7 @@ METHOD(forecast_listener_t, set_broadcast, void,
        {
                struct sockaddr_in *in;
 
-               in = bcast->get_sockaddr(bcast);
+               in = (struct sockaddr_in*)bcast->get_sockaddr(bcast);
                this->broadcast = in->sin_addr.s_addr;
        }
 }