]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdmain.c
fix: array index out of range in mfkeys.log (thanks to @TomHarkness)
[proxmark3-svn] / client / cmdmain.c
index 10948c971917d499a633b3fd9d77522016970d29..01d4c9a7f7e2d04d58f26ea38f6a1ff191821970 100644 (file)
@@ -17,7 +17,6 @@
 #include <string.h>
 #include "cmdparser.h"
 #include "proxmark3.h"
-#include "data.h"
 #include "usb_cmd.h"
 #include "ui.h"
 #include "cmdhf.h"
@@ -29,8 +28,6 @@
 #include "cmdscript.h"
 
 
-unsigned int current_command = CMD_UNKNOWN;
-
 static int CmdHelp(const char *Cmd);
 static int CmdQuit(const char *Cmd);
 
@@ -53,13 +50,13 @@ command_t* getTopLevelCommandTable()
   return CommandTable;
 }
 
-int CmdHelp(const char *Cmd)
+static int CmdHelp(const char *Cmd)
 {
   CmdsHelp(CommandTable);
   return 0;
 }
 
-int CmdQuit(const char *Cmd)
+static int CmdQuit(const char *Cmd)
 {
   return 99;
 }
Impressum, Datenschutz