1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-10 17:57:40 +03:00

systemctl: Fix warn: action_to_runlevel() is not used

If HAVE_SYSV_COMPAT is not defined: ‘action_to_runlevel’ defined but not used
This commit is contained in:
Benjamin ROBIN 2016-02-29 15:07:09 +01:00
parent 5df2b16d4b
commit d2e796739d

View File

@ -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