mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
Reduce some var scopes
This commit is contained in:
parent
ac6b0ec1ce
commit
732bc766f9
52 changed files with 318 additions and 409 deletions
|
@ -338,6 +338,7 @@ static int l_WaitForResponseTimeout(lua_State *L) {
|
|||
|
||||
memcpy(foo + n, &resp.ng, sizeof(resp.ng));
|
||||
n += sizeof(resp.ng);
|
||||
(void) n;
|
||||
|
||||
//Push it as a string
|
||||
lua_pushlstring(L, (const char *)&foo, sizeof(foo));
|
||||
|
@ -995,7 +996,7 @@ static int l_T55xx_detect(lua_State *L) {
|
|||
//
|
||||
static int l_ndefparse(lua_State *L) {
|
||||
|
||||
size_t len = 0, size;
|
||||
size_t size;
|
||||
|
||||
//Check number of arguments
|
||||
int n = lua_gettop(L);
|
||||
|
@ -1021,7 +1022,6 @@ static int l_ndefparse(lua_State *L) {
|
|||
for (int i = 0; i < size; i += 2) {
|
||||
sscanf(&p_data[i], "%02x", &tmp);
|
||||
data[i >> 1] = tmp & 0xFF;
|
||||
len++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue