X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/0de8e3874d6524379550a50a4d9c29faf2d239ea..cc3c0a5148088f40adda1073cdb99cbbb3130f0a:/client/cmdmain.c?ds=inline diff --git a/client/cmdmain.c b/client/cmdmain.c index b0e1b2ef..51aada76 100644 --- a/client/cmdmain.c +++ b/client/cmdmain.c @@ -75,7 +75,7 @@ int CmdLS(const char *Cmd){ int CmdQuit(const char *Cmd) { exit(0); - return 0; + return 99; } int CmdRev(const char *Cmd) @@ -174,8 +174,8 @@ bool WaitForResponse(uint32_t cmd, UsbCommand* response) { // Entry point into our code: called whenever the user types a command and // then presses Enter, which the full command line that they typed. //----------------------------------------------------------------------------- -void CommandReceived(char *Cmd) { - CmdsParse(CommandTable, Cmd); +int CommandReceived(char *Cmd) { + return CmdsParse(CommandTable, Cmd); } //----------------------------------------------------------------------------- @@ -204,9 +204,10 @@ void UsbCommandReceived(UsbCommand *UC) return; } break; - default: - storeCommand(UC); + default: { + storeCommand(UC); break; + } } }