From cdcb8b86007b6490557f1329f42c08732282c500 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 19 Jan 2014 09:44:33 -0500 Subject: Added no_replay and added some things to the docs. --- toxcore/Messenger.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'toxcore/Messenger.c') diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 2f270fb6..19246d7d 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -34,27 +34,6 @@ #define MIN(a,b) (((a)<(b))?(a):(b)) -void host_to_net(uint8_t *num, uint16_t numbytes) -{ - union { - uint32_t i; - uint8_t c[4]; - } a; - a.i = 1; - - if (a.c[0] == 1) { - uint32_t i; - uint8_t buff[numbytes]; - - for (i = 0; i < numbytes; ++i) { - buff[i] = num[numbytes - i - 1]; - } - - memcpy(num, buff, numbytes); - } -} -#define net_to_host(x, y) host_to_net(x, y) - static void set_friend_status(Messenger *m, int friendnumber, uint8_t status); static int write_cryptpacket_id(Messenger *m, int friendnumber, uint8_t packet_id, uint8_t *data, uint32_t length); -- cgit v1.2.3