Remove CLI service modes
The modes weren't used and provided access to raw memory which is not safe.
This commit is contained in:
@ -44,7 +44,6 @@ typedef struct cli_instance
|
||||
{
|
||||
SPINLOCK lock; /*< The instance spinlock */
|
||||
SERVICE *service; /*< The debug cli service */
|
||||
int mode; /*< CLI interface mode */
|
||||
struct cli_session
|
||||
*sessions; /*< Linked list of sessions within this instance */
|
||||
struct cli_instance
|
||||
@ -60,16 +59,11 @@ typedef struct cli_instance
|
||||
typedef struct cli_session
|
||||
{
|
||||
char cmdbuf[CMDBUFLEN]; /*< The command buffer used to build up user commands */
|
||||
int mode; /*< The CLI Mode for this session */
|
||||
SESSION *session; /*< The gateway session */
|
||||
struct cli_session
|
||||
*next; /*< The next pointer for the list of sessions */
|
||||
} CLI_SESSION;
|
||||
|
||||
/* Command line interface modes */
|
||||
#define CLIM_USER 1
|
||||
#define CLIM_DEVELOPER 2
|
||||
|
||||
MXS_END_DECLS
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user