diff options
author | Diadlo <polsha3@gmail.com> | 2017-03-03 21:21:25 +0300 |
---|---|---|
committer | Diadlo <polsha3@gmail.com> | 2017-08-24 20:09:08 +0300 |
commit | 491d03c229d5fe684a38bac2abc4ef2617da2bba (patch) | |
tree | b86c8e7ea5bfca3738e94858ce696d39752d6009 /toxcore/onion.c | |
parent | e28d48130f69b3447d35287492f95a2f0a83b1ff (diff) |
Remove useless 'to_net_family' and 'to_host_family'
Diffstat (limited to 'toxcore/onion.c')
-rw-r--r-- | toxcore/onion.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/toxcore/onion.c b/toxcore/onion.c index 805770fa..fbaf7205 100644 --- a/toxcore/onion.c +++ b/toxcore/onion.c | |||
@@ -51,8 +51,6 @@ static void change_symmetric_key(Onion *onion) | |||
51 | /* packing and unpacking functions */ | 51 | /* packing and unpacking functions */ |
52 | static void ip_pack(uint8_t *data, IP source) | 52 | static void ip_pack(uint8_t *data, IP source) |
53 | { | 53 | { |
54 | to_net_family(&source); | ||
55 | |||
56 | data[0] = source.family; | 54 | data[0] = source.family; |
57 | 55 | ||
58 | if (source.family == TOX_AF_INET || source.family == TOX_TCP_INET) { | 56 | if (source.family == TOX_AF_INET || source.family == TOX_TCP_INET) { |