clang-tidy/Android Stuidio cleanups 3
This commit is contained in:
parent
d877287636
commit
bc0d1f7ac0
20 changed files with 150 additions and 182 deletions
|
|
@ -15,9 +15,8 @@ TMsg *sgpTimedMsgHead;
|
|||
|
||||
} // namespace
|
||||
|
||||
int tmsg_get(byte *pbMsg)
|
||||
size_t tmsg_get(byte *pbMsg)
|
||||
{
|
||||
int len;
|
||||
TMsg *head;
|
||||
|
||||
if (sgpTimedMsgHead == nullptr)
|
||||
|
|
@ -27,7 +26,7 @@ int tmsg_get(byte *pbMsg)
|
|||
return 0;
|
||||
head = sgpTimedMsgHead;
|
||||
sgpTimedMsgHead = head->hdr.pNext;
|
||||
len = head->hdr.bLen;
|
||||
size_t len = head->hdr.bLen;
|
||||
// BUGFIX: ignores dwMaxLen
|
||||
memcpy(pbMsg, head->body, len);
|
||||
std::free(head);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue