X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogin%2Flogind-action.c;fp=src%2Flogin%2Flogind-action.c;h=ab197a0dbaf50d4185c5add1d752271b7f326625;hp=474b69628e991013c2761f1e4954ddd939691edc;hb=4084669c7f802c9745bcb6bed77bdaf49ffd896d;hpb=6053df4ee3a205f25b67f43ece1ff4d1202b7edb diff --git a/src/login/logind-action.c b/src/login/logind-action.c index 474b69628..ab197a0db 100644 --- a/src/login/logind-action.c +++ b/src/login/logind-action.c @@ -58,8 +58,7 @@ int manager_handle_action( [HANDLE_HYBRID_SLEEP] = "Hibernating and suspending..." }; -/// elogind does this itself. No target table required -#if 0 +#if 0 /// elogind does this itself. No target table required static const char * const target_table[_HANDLE_ACTION_MAX] = { [HANDLE_POWEROFF] = SPECIAL_POWEROFF_TARGET, [HANDLE_REBOOT] = SPECIAL_REBOOT_TARGET, @@ -165,8 +164,7 @@ int manager_handle_action( log_info("%s", message_table[handle]); -/// elogind uses its own variant, which can use the handle directly. -#if 0 +#if 0 /// elogind uses its own variant, which can use the handle directly. r = bus_manager_shutdown_or_sleep_now_or_later(m, target_table[handle], inhibit_operation, &error); #else r = bus_manager_shutdown_or_sleep_now_or_later(m, handle, inhibit_operation, &error);