mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
remove some cppcheck warnings
This commit is contained in:
parent
dd9005719a
commit
1ebfa897c8
24 changed files with 145 additions and 146 deletions
|
@ -935,12 +935,12 @@ static int CmdUndec(const char *Cmd) {
|
|||
//by marshmellow
|
||||
//shift graph zero up or down based on input + or -
|
||||
static int CmdGraphShiftZero(const char *Cmd) {
|
||||
int shift = 0, shiftedVal;
|
||||
int shift = 0;
|
||||
//set options from parameters entered with the command
|
||||
sscanf(Cmd, "%i", &shift);
|
||||
|
||||
for (size_t i = 0; i < GraphTraceLen; i++) {
|
||||
shiftedVal = GraphBuffer[i] + shift;
|
||||
int shiftedVal = GraphBuffer[i] + shift;
|
||||
|
||||
if (shiftedVal > 127)
|
||||
shiftedVal = 127;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue