diff options
author | Jan Malakhovski <oxij@oxij.org> | 2018-07-01 23:26:39 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-19 19:24:00 +0000 |
commit | e7a5f52c14c3603f883b5dbdcc9ab589b50a3ed0 (patch) | |
tree | 332dc17d7b7042612a652d83da0c47e330fb1d53 /toxcore/tox.c | |
parent | 3f6b6842f33f6ac74bdaa61cfa47565d509fa453 (diff) |
Collect `PACKET_ID*` constants in `net_crypto.h`, cleanup their uses
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index cae2dcb3..95acfd2a 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -1522,7 +1522,7 @@ bool tox_friend_send_lossy_packet(Tox *tox, uint32_t friend_number, const uint8_ | |||
1522 | return 0; | 1522 | return 0; |
1523 | } | 1523 | } |
1524 | 1524 | ||
1525 | if (data[0] < (PACKET_ID_LOSSY_RANGE_START + PACKET_LOSSY_AV_RESERVED)) { | 1525 | if (data[0] <= PACKET_ID_RANGE_LOSSY_AV_END) { |
1526 | SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_CUSTOM_PACKET_INVALID); | 1526 | SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_CUSTOM_PACKET_INVALID); |
1527 | return 0; | 1527 | return 0; |
1528 | } | 1528 | } |