mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
avoid checker warning
This commit is contained in:
parent
6b1b3c8e27
commit
a6c7492c42
1 changed files with 2 additions and 1 deletions
|
@ -292,7 +292,8 @@ NSDataFromAvahiAddressPortAndInterface(const AvahiAddress *addr,
|
|||
{
|
||||
struct sockaddr_in *s4 = (struct sockaddr_in*)&s;
|
||||
// The address is already in network byte-order.
|
||||
struct in_addr a = { a.s_addr = addr->data.ipv4.address };
|
||||
struct in_addr a;
|
||||
a.s_addr = addr->data.ipv4.address;
|
||||
s4->sin_family = AF_INET;
|
||||
s4->sin_port = htons(port);
|
||||
s4->sin_addr = a;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue