more microsoft fluff

pull/15/head
despair86 6 years ago
parent 8c7f5547a9
commit 0adf981999

@ -5,6 +5,7 @@
#include <llarp/net.h>
#ifdef __cplusplus
#include <iostream>
#include <string>
#include <llarp/bits.hpp>
#endif
@ -45,7 +46,7 @@ struct llarp_xi
operator<<(std::ostream &out, const llarp_xi &xi)
{
char tmp[128] = {0};
if(inet_ntop(AF_INET6, &xi.address, tmp, sizeof(tmp)))
if(inet_ntop(AF_INET6, (void*)&xi.address, tmp, sizeof(tmp)))
out << std::string(tmp);
else
return out;

Loading…
Cancel
Save