summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-12-26 09:47:35 -0500
committerirungentoo <irungentoo@gmail.com>2013-12-26 09:47:35 -0500
commit977aab7f2f324e4d0b2807184d2aea6350c0f5c7 (patch)
tree6ede1adf6332e64b75073146656ec0b63e21b254 /toxcore
parent042d75984782e7445c9e23c7f9dc1084f1150f72 (diff)
It makes more sense for new_keys() to be in new_net_crypto()
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/Messenger.c1
-rw-r--r--toxcore/net_crypto.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index 78c83519..4f84ba6b 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1553,7 +1553,6 @@ Messenger *new_messenger(uint8_t ipv6enabled)
1553 return NULL; 1553 return NULL;
1554 } 1554 }
1555 1555
1556 new_keys(m->net_crypto);
1557 m_set_statusmessage(m, (uint8_t *)"Online", sizeof("Online")); 1556 m_set_statusmessage(m, (uint8_t *)"Online", sizeof("Online"));
1558 1557
1559 friendreq_init(&(m->fr), m->net_crypto); 1558 friendreq_init(&(m->fr), m->net_crypto);
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c
index a37d99da..aec2a9e7 100644
--- a/toxcore/net_crypto.c
+++ b/toxcore/net_crypto.c
@@ -818,6 +818,7 @@ Net_Crypto *new_net_crypto(Networking_Core *net)
818 return NULL; 818 return NULL;
819 } 819 }
820 820
821 new_keys(temp);
821 return temp; 822 return temp;
822} 823}
823 824