diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-10 13:39:07 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-10 18:57:37 +0000 |
commit | 54ec162558f203242639b382eea6e0085300249c (patch) | |
tree | 5321d67bbc143ea3caa4e9e9048ffc71e40b0c14 /toxcore/tox.c | |
parent | a3079e82ddda90055d7247f000a8e9afa7f8a5c5 (diff) |
Fix formatting in some C files.
Also replace &(x) with &x for consistency.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 12f37620..f16002f4 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -355,13 +355,13 @@ void tox_self_get_address(const Tox *tox, uint8_t *address) | |||
355 | void tox_self_set_nospam(Tox *tox, uint32_t nospam) | 355 | void tox_self_set_nospam(Tox *tox, uint32_t nospam) |
356 | { | 356 | { |
357 | Messenger *m = tox; | 357 | Messenger *m = tox; |
358 | set_nospam(&(m->fr), net_htonl(nospam)); | 358 | set_nospam(&m->fr, net_htonl(nospam)); |
359 | } | 359 | } |
360 | 360 | ||
361 | uint32_t tox_self_get_nospam(const Tox *tox) | 361 | uint32_t tox_self_get_nospam(const Tox *tox) |
362 | { | 362 | { |
363 | const Messenger *m = tox; | 363 | const Messenger *m = tox; |
364 | return net_ntohl(get_nospam(&(m->fr))); | 364 | return net_ntohl(get_nospam(&m->fr)); |
365 | } | 365 | } |
366 | 366 | ||
367 | void tox_self_get_public_key(const Tox *tox, uint8_t *public_key) | 367 | void tox_self_get_public_key(const Tox *tox, uint8_t *public_key) |