Relocate global sm variable to reduce include file deps

The new state machine handling is not necessary to export to external
plugins, so this patch reduces the exposure of the global variable sm

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-06-04 23:10:47 +02:00
1 parent e9da876a10
commit ea21bfc4c9
4 files changed
+4 -4

No files matched your search

-3
View File
@@ -35,8 +35,6 @@
#include <unistd.h>
#include <lite/lite.h>
#include "sm.h"
#define CMD_SIZE 256
#define LINE_SIZE 1024
#define BUF_SIZE 4096
@@ -80,7 +78,6 @@ extern char *username;
extern char *runparts;
extern char *console;
extern char *__progname;
extern sm_t sm;
#endif /* FINIT_H_ */