Merge pull request #12055 from poettering/save-argc-argv

main-func.h and systemctl argc/argv improvements
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-03-22 16:58:18 +01:00
committed by GitHub
6 changed files with 35 additions and 25 deletions
+5
View File
@@ -46,6 +46,11 @@ static inline const char* enable_disable(bool b) {
extern int saved_argc;
extern char **saved_argv;
static inline void save_argc_argv(int argc, char **argv) {
saved_argc = argc;
saved_argv = argv;
}
bool kexec_loaded(void);
int prot_from_flags(int flags) _const_;