mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
cppcheck fixes
This commit is contained in:
parent
edb5f18b3a
commit
05576ba06b
10 changed files with 34 additions and 54 deletions
|
@ -230,3 +230,11 @@ uint32_t rotr(uint32_t a, uint8_t n) {
|
|||
n &= 31;
|
||||
return (a >> n) | (a << (32 - n));
|
||||
}
|
||||
|
||||
uint16_t get_sw(const uint8_t *d, uint8_t n) {
|
||||
if (n < 2)
|
||||
return 0;
|
||||
|
||||
n -= 2;
|
||||
return d[n] * 0x0100 + d[n + 1];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue