From 7144c99b0765f6995e7a954030bfcb5bb2d441d0 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 12 Jan 2016 22:42:31 +0100 Subject: [PATCH] CHG: syntax suger --- client/cmdhfepa.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/client/cmdhfepa.c b/client/cmdhfepa.c index 68176bf6..ecd1ec3a 100644 --- a/client/cmdhfepa.c +++ b/client/cmdhfepa.c @@ -178,8 +178,7 @@ int CmdHFEPAPACEReplay(const char *Cmd) // UI-related stuff -static const command_t CommandTable[] = -{ +static const command_t CommandTable[] = { {"help", CmdHelp, 1, "This help"}, {"cnonces", CmdHFEPACollectPACENonces, 0, " Acquire n>0 encrypted PACE nonces of size m>0 with d sec pauses"}, @@ -188,18 +187,15 @@ static const command_t CommandTable[] = {NULL, NULL, 0, NULL} }; -int CmdHelp(const char *Cmd) -{ +int CmdHelp(const char *Cmd) { CmdsHelp(CommandTable); return 0; } -int CmdHFEPA(const char *Cmd) -{ +int CmdHFEPA(const char *Cmd) { // flush clearCommandBuffer(); //WaitForResponseTimeout(CMD_ACK,NULL,100); - // parse CmdsParse(CommandTable, Cmd); return 0; -- 2.39.2