Commit f9944743 authored by damienf's avatar damienf
Browse files

- udp.c: unix fix

parent f11c071d
...@@ -663,7 +663,7 @@ static const char *MakeRandMulticast (int family, char *buf, size_t buflen) ...@@ -663,7 +663,7 @@ static const char *MakeRandMulticast (int family, char *buf, size_t buflen)
} }
return NULL; return NULL;
#else #else
return inet_ntop (family, &(addr.sin_addr), buf, buflen); return inet_ntop (family, &(addr.sin6_addr), buf, buflen);
#endif #endif
} }
#endif #endif
...@@ -682,7 +682,7 @@ static const char *MakeRandMulticast (int family, char *buf, size_t buflen) ...@@ -682,7 +682,7 @@ static const char *MakeRandMulticast (int family, char *buf, size_t buflen)
} }
return NULL; return NULL;
#else #else
return inet_ntop (family, &addr, buf, buflen); return inet_ntop (family, &(addr.sin_addr), buf, buflen);
#endif #endif
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment