mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +00:00
Fix build warnings if fallback shell is disabled
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
dd87c81adc
commit
6ce218612b
1 file changed
+3
-1
@@ -35,7 +35,9 @@
|
|||||||
#include "tty.h"
|
#include "tty.h"
|
||||||
#include "utmp-api.h"
|
#include "utmp-api.h"
|
||||||
|
|
||||||
|
#ifdef FALLBACK_SHELL
|
||||||
static pid_t fallback = 0;
|
static pid_t fallback = 0;
|
||||||
|
#endif
|
||||||
static LIST_HEAD(, tty_node) tty_list = LIST_HEAD_INITIALIZER();
|
static LIST_HEAD(, tty_node) tty_list = LIST_HEAD_INITIALIZER();
|
||||||
|
|
||||||
|
|
||||||
@@ -214,7 +216,7 @@ int tty_enabled(finit_tty_t *tty, int runlevel)
|
|||||||
/*
|
/*
|
||||||
* Fallback shell if no TTYs are active
|
* Fallback shell if no TTYs are active
|
||||||
*/
|
*/
|
||||||
int tty_fallback(pid_t lost)
|
int tty_fallback(pid_t UNUSED(lost))
|
||||||
{
|
{
|
||||||
#ifdef FALLBACK_SHELL
|
#ifdef FALLBACK_SHELL
|
||||||
if (lost == 1) {
|
if (lost == 1) {
|
||||||
|
|||||||
Reference in new issue
Block a user