add: comment about endianness

pull/1506/head
Roman Proskuryakov 2016-01-24 08:53:01 +03:00
parent ed3a794c9b
commit 94d6333107
1 changed files with 1 additions and 0 deletions

View File

@ -233,6 +233,7 @@ int pack_nodes(uint8_t *data, uint16_t length, const Node_format *nodes, uint16_
int ipv6 = -1;
uint8_t net_family;
// FIXME use functions to convert endianness
if (nodes[i].ip_port.ip.family == AF_INET) {
ipv6 = 0;
net_family = TOX_AF_INET;