aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc.c
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-01 13:13:28 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-01 13:13:28 -0600
commit981d2b3308edb0d0a68f7bdce4f2c99110de6940 (patch)
tree2bc2eb2f2a3fdbe008cf5dd0d8940dcdbfe5f4d0 /src/rc/rc.c
parent5d3e85bc310e12411135e98a397b35fb920a72a3 (diff)
rc: clean up compiler warnings
The get_systype(), detect_container(), detect_prefix() and detect_vm() functions need to return "char *" instead of "const char *".
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r--src/rc/rc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index a0b18865..64541e07 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -261,7 +261,7 @@ open_shell(void)
struct passwd *pw;
#ifdef __linux__
- const char *sys = NULL;
+ char *sys = NULL;
sys = detect_container();
if (!sys)
@@ -450,7 +450,7 @@ static void
do_sysinit()
{
struct utsname uts;
- const char *sys;
+ 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;
- const char *systype = NULL;
+ char *systype = NULL;
static RC_STRINGLIST *hotplugged_services;
static RC_STRINGLIST *stop_services;
static RC_STRINGLIST *start_services;