diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-28 14:58:32 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-28 14:58:32 +0200 |
commit | d3352b997ca59a336a40fe6660c6e5b7079864aa (patch) | |
tree | f365d6c0304e512057223e9a3cf37357da44a443 /shared/rcon-protocol.h | |
parent | 99b2c70137fef05a5a18f439b9010ddba455f5cb (diff) |
Run clang-format on source tree (excl igmp.c)
Diffstat (limited to 'shared/rcon-protocol.h')
-rw-r--r-- | shared/rcon-protocol.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shared/rcon-protocol.h b/shared/rcon-protocol.h index 097da1d..b3aea98 100644 --- a/shared/rcon-protocol.h +++ b/shared/rcon-protocol.h @@ -5,6 +5,7 @@ #include <stdint.h> /* FIXME: FAIL is an id, not type, LOGIN_OK should be LOGIN_RESPONSE */ +/* clang-format off */ enum rcon_packet_type { RCON_PACKET_LOGIN = 3, RCON_PACKET_LOGIN_OK = 2, @@ -12,6 +13,7 @@ enum rcon_packet_type { RCON_PACKET_COMMAND = 2, RCON_PACKET_RESPONSE = 0, }; +/* clang-format on */ #define RCON_INT_LEN 4 @@ -22,8 +24,7 @@ enum rcon_packet_type { /* header + reqid + type + end */ #define RCON_PKT_MIN_LEN (RCON_HDR_LEN + 2 * RCON_INT_LEN + RCON_END_LEN) -static inline size_t -rcon_protocol_packet_len(size_t msglen) +static inline size_t rcon_protocol_packet_len(size_t msglen) { /* header + reqid + type + msg + end */ return (RCON_PKT_MIN_LEN + msglen); |