summaryrefslogtreecommitdiff
path: root/staging/cli.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2020-08-19 12:04:47 +0200
committerTobias Klauser <tobias.klauser@gmail.com>2020-08-19 13:16:51 +0200
commit0d5aa3246c20dad2d76165559fb575136b7216e8 (patch)
treec2795e739e5cc9969e3896200db7fe036921a917 /staging/cli.c
parentbfa3c89317869ffe1e90b7e01e7cacad7a7ea10e (diff)
mausezahn: move variable definitions cli.h to cli.c
Move variable definitions to avoid "multiple definition of symbol" linker errors with gcc-10. Updates #216 Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'staging/cli.c')
-rw-r--r--staging/cli.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/staging/cli.c b/staging/cli.c
index 5b5a159..dbfdb55 100644
--- a/staging/cli.c
+++ b/staging/cli.c
@@ -23,6 +23,19 @@
#include "mops.h"
#include "llist.h"
+struct cli_def *gcli;
+
+char mz_username[32];
+char mz_password[32];
+char mz_enable[32];
+char mz_listen_addr[16];
+int mz_port;
+struct mops *clipkt; // actual packet used by CLI thread
+
+int clidev;
+
+int cli_debug;
+
void mz_cli_init(void)
{
amp_head = automops_init();