basic: split out update_reboot_parameter_and_warn() into its own .c/.h files

This is primarily preparation for a follow-up commit that adds a common
implementation of the other side of the reboot parameter file, i.e. the
code that reads the file and issues reboot() for it.
This commit is contained in:
Lennart Poettering
2018-02-22 10:46:12 +01:00
parent 118cf9523b
commit e3631d1c80
7 changed files with 42 additions and 25 deletions
+4
View File
@@ -0,0 +1,4 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
int update_reboot_parameter_and_warn(const char *parameter);