summaryrefslogtreecommitdiff
path: root/toxcore/util.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-08-17 10:52:04 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-08-18 00:01:53 +0100
commita5e35180c7b42d30c82825cd67c8118ce048f65a (patch)
treeb74e8ece4f78a988ab0a1300cc08bd35fcd63662 /toxcore/util.c
parentdb22522741cccdeba657776844538c71cf8e8e7a (diff)
Make tox_callback_friend_name stateless.
See #27 and #40 for details.
Diffstat (limited to 'toxcore/util.c')
-rw-r--r--toxcore/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/util.c b/toxcore/util.c
index b120957c..7b715990 100644
--- a/toxcore/util.c
+++ b/toxcore/util.c
@@ -145,8 +145,8 @@ int load_state(load_state_callback_func load_state_callback, void *outer,
145 145
146 if (lendian_to_host16((cookie_type >> 16)) != cookie_inner) { 146 if (lendian_to_host16((cookie_type >> 16)) != cookie_inner) {
147 /* something is not matching up in a bad way, give up */ 147 /* something is not matching up in a bad way, give up */
148#ifdef TOX_DEBUG 148#ifdef DEBUG
149 fprintf(stderr, "state file garbeled: %04hx != %04hx\n", (cookie_type >> 16), cookie_inner); 149 fprintf(stderr, "state file garbled: %04x != %04x\n", (cookie_type >> 16), cookie_inner);
150#endif 150#endif
151 return -1; 151 return -1;
152 } 152 }