mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-12 10:16:52 +08:00
cppchecker shadow var
This commit is contained in:
parent
656f35036d
commit
6f1ed5a9bf
1 changed files with 5 additions and 5 deletions
|
@ -143,16 +143,16 @@ void writetable(struct table *t1) {
|
|||
|
||||
// store value in table
|
||||
void store(unsigned char *data) {
|
||||
unsigned char d1, d2;
|
||||
unsigned char d_1, d_2;
|
||||
int offset;
|
||||
struct table *t1;
|
||||
|
||||
// use the first two bytes as an index
|
||||
d1 = data[0];
|
||||
d2 = data[1];
|
||||
offset = (d1 * 0x100) + d2;
|
||||
d_1 = data[0];
|
||||
d_2 = data[1];
|
||||
offset = (d_1 * 0x100) + d_2;
|
||||
|
||||
if (debug) printf("store, d1=%02X, d2=%02X, offset = %d\n", d1, d2, offset);
|
||||
if (debug) printf("store, d1=%02X, d2=%02X, offset = %d\n", d_1, d_2, offset);
|
||||
|
||||
// get pointer to table entry
|
||||
t1 = t + offset;
|
||||
|
|
Loading…
Reference in a new issue