diff options
author | iphydf <iphydf@users.noreply.github.com> | 2019-01-12 21:28:21 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-03-05 22:56:26 +0000 |
commit | e35d70af1822095b7b273f1cec16878645b90078 (patch) | |
tree | 143241b035976125cfb7fee241e3fde9ad02195b /toxcore/util.h | |
parent | cbc26d9b165277e3c450806e1da1e6904a9dcedb (diff) |
Use net_pack/unpack instead of host_to_net.
The latter is doing pretty much the same thing but in a confusing way (it
doesn't change the type of the variable, but does change the semantics).
Diffstat (limited to 'toxcore/util.h')
-rw-r--r-- | toxcore/util.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/toxcore/util.h b/toxcore/util.h index 79f5deb5..2a0503e1 100644 --- a/toxcore/util.h +++ b/toxcore/util.h | |||
@@ -40,9 +40,6 @@ extern "C" { | |||
40 | bool id_equal(const uint8_t *dest, const uint8_t *src); | 40 | bool id_equal(const uint8_t *dest, const uint8_t *src); |
41 | uint32_t id_copy(uint8_t *dest, const uint8_t *src); /* return value is CLIENT_ID_SIZE */ | 41 | uint32_t id_copy(uint8_t *dest, const uint8_t *src); /* return value is CLIENT_ID_SIZE */ |
42 | 42 | ||
43 | void host_to_net(uint8_t *num, uint16_t numbytes); | ||
44 | void net_to_host(uint8_t *num, uint16_t numbytes); | ||
45 | |||
46 | /* Returns -1 if failed or 0 if success */ | 43 | /* Returns -1 if failed or 0 if success */ |
47 | int create_recursive_mutex(pthread_mutex_t *mutex); | 44 | int create_recursive_mutex(pthread_mutex_t *mutex); |
48 | 45 | ||