diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-10-20 20:58:12 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-10-21 01:25:17 -0400 |
commit | 823fdc9cb47b0117f34366b1c7d583070803a93c (patch) | |
tree | c118fb482e35007c1f69e501539a8f512653d938 /src/command.c | |
parent | 92e1481a52bfe5e371b7c7d464e526d6314979c5 (diff) | |
download | kutter-823fdc9cb47b0117f34366b1c7d583070803a93c.tar.gz kutter-823fdc9cb47b0117f34366b1c7d583070803a93c.tar.xz kutter-823fdc9cb47b0117f34366b1c7d583070803a93c.zip |
command: Make command_add_frame() and command_encodef() static
The only users of these two functions are in command.c so they can be
declared local to that code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c index 015cdb8e..39c09458 100644 --- a/src/command.c +++ b/src/command.c @@ -108,7 +108,7 @@ error: } // Encode a message -uint_fast8_t +static uint_fast8_t command_encodef(uint8_t *buf, const struct command_encoder *ce, va_list args) { uint_fast8_t max_size = READP(ce->max_size); @@ -172,7 +172,7 @@ error: } // Add header and trailer bytes to a message block -void +static void command_add_frame(uint8_t *buf, uint_fast8_t msglen) { buf[MESSAGE_POS_LEN] = msglen; |