rc: fix compiler warnings cleanup

This reverts commit 981d2b3308 and fixes
the warnings that generated.
This commit is contained in:
William Hubbs
2016-01-05 00:57:40 -06:00
parent 53bc986ce5
commit fe485f4433
4 changed files with 15 additions and 15 deletions

View File

@ -261,7 +261,7 @@ open_shell(void)
struct passwd *pw;
#ifdef __linux__
char *sys = NULL;
const char *sys = NULL;
sys = detect_container();
if (!sys)
@ -450,7 +450,7 @@ static void
do_sysinit()
{
struct utsname uts;
char *sys;
const char *sys;
/* exec init-early.sh if it exists
* This should just setup the console to use the correct
@ -749,7 +749,7 @@ main(int argc, char **argv)
{
const char *bootlevel = NULL;
char *newlevel = NULL;
char *systype = NULL;
const char *systype = NULL;
static RC_STRINGLIST *hotplugged_services;
static RC_STRINGLIST *stop_services;
static RC_STRINGLIST *start_services;