mirror of
https://github.com/systemd/systemd
synced 2024-09-06 00:41:36 +00:00
Merge pull request #2767 from benjarobin/fix-warn
systemctl: Fix warn: action_to_runlevel() is not used
This commit is contained in:
commit
97a437d24c
|
@ -7263,6 +7263,7 @@ static int parse_argv(int argc, char *argv[]) {
|
|||
return systemctl_parse_argv(argc, argv);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SYSV_COMPAT
|
||||
_pure_ static int action_to_runlevel(void) {
|
||||
|
||||
static const char table[_ACTION_MAX] = {
|
||||
|
@ -7280,6 +7281,7 @@ _pure_ static int action_to_runlevel(void) {
|
|||
|
||||
return table[arg_action];
|
||||
}
|
||||
#endif
|
||||
|
||||
static int talk_initctl(void) {
|
||||
#ifdef HAVE_SYSV_COMPAT
|
||||
|
|
Loading…
Reference in a new issue