Skip to content

Commit

Permalink
Improve comments in protocol/command module.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Jun 8, 2023
1 parent 0bf1b4a commit 818ef4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/protocol/command.c
Expand Up @@ -53,12 +53,12 @@ protocolCommandPut(ProtocolCommand *const this, IoWrite *const write)

MEM_CONTEXT_TEMP_BEGIN()
{
// Write the command and flush to be sure the command gets sent immediately
// Write the command
PackWrite *commandPack = pckWriteNewIo(write);
pckWriteU32P(commandPack, protocolMessageTypeCommand, .defaultWrite = true);
pckWriteStrIdP(commandPack, this->command);

// Only write params if there were any
// Write parameters
if (this->pack != NULL)
{
pckWriteEndP(this->pack);
Expand Down
1 change: 0 additions & 1 deletion src/protocol/command.h
Expand Up @@ -21,7 +21,6 @@ FN_EXTERN ProtocolCommand *protocolCommandNew(const StringId command);
Functions
***********************************************************************************************************************************/
// Move to a new parent mem context
// Move to a new parent mem context
FN_INLINE_ALWAYS ProtocolCommand *
protocolCommandMove(ProtocolCommand *const this, MemContext *const parentNew)
{
Expand Down

0 comments on commit 818ef4b

Please sign in to comment.