mirror of
https://github.com/troglobit/finit.git
synced 2026-10-25 12:04:36 +00:00
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:
1 parent
e9da876a10
commit
ea21bfc4c9
4 files changed
+4
-4
No files matched your search
@@ -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_ */
|
||||
|
||||
|
||||
Reference in new issue
Block a user