forecast: Explicitly cast sockaddr to fix compiler warning

On Travis we compile with -Werror.
This commit is contained in:
Tobias Brunner 2015-02-23 12:13:56 +01:00
parent 89b60e9fd7
commit 98632af672
1 changed files with 1 additions and 1 deletions

View 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;
}
}