mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
syntax sugar
This commit is contained in:
parent
20465e17b3
commit
8dbc84dd07
2 changed files with 2 additions and 3 deletions
|
@ -221,5 +221,4 @@ void UsbCommandReceived(UsbCommand *UC)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ int CmdsParse(const command_t Commands[], const char *Cmd) {
|
||||||
int last_match = 0;
|
int last_match = 0;
|
||||||
int matches = 0;
|
int matches = 0;
|
||||||
|
|
||||||
for (i=0; Commands[i].Name;i++) {
|
for (i=0; Commands[i].Name; i++) {
|
||||||
if( !strncmp(Commands[i].Name, cmd_name, strlen(cmd_name)) ) {
|
if( !strncmp(Commands[i].Name, cmd_name, strlen(cmd_name)) ) {
|
||||||
last_match = i;
|
last_match = i;
|
||||||
matches++;
|
matches++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue