diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2016-01-05 00:57:40 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-01-05 01:05:00 -0600 |
commit | fe485f44339963fdbee143687dcbef2069924bc6 (patch) | |
tree | b87133a1af071124ad9d874bd8a71597d0a6865a /src/rc/rc.c | |
parent | 53bc986ce5f9725d7117356e28224ac898f9c9bf (diff) |
rc: fix compiler warnings cleanup
This reverts commit 981d2b3308edb0d0a68f7bdce4f2c99110de6940 and fixes
the warnings that generated.
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r-- | src/rc/rc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c index 64541e07..a0b18865 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -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; |