summaryrefslogtreecommitdiff
path: root/toxcore/util.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2019-01-12 21:28:21 +0000
committeriphydf <iphydf@users.noreply.github.com>2020-03-05 22:56:26 +0000
commite35d70af1822095b7b273f1cec16878645b90078 (patch)
tree143241b035976125cfb7fee241e3fde9ad02195b /toxcore/util.h
parentcbc26d9b165277e3c450806e1da1e6904a9dcedb (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.h3
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" {
40bool id_equal(const uint8_t *dest, const uint8_t *src); 40bool id_equal(const uint8_t *dest, const uint8_t *src);
41uint32_t id_copy(uint8_t *dest, const uint8_t *src); /* return value is CLIENT_ID_SIZE */ 41uint32_t id_copy(uint8_t *dest, const uint8_t *src); /* return value is CLIENT_ID_SIZE */
42 42
43void host_to_net(uint8_t *num, uint16_t numbytes);
44void 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 */
47int create_recursive_mutex(pthread_mutex_t *mutex); 44int create_recursive_mutex(pthread_mutex_t *mutex);
48 45