diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2016-01-01 13:13:28 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-01-01 13:13:28 -0600 |
commit | 981d2b3308edb0d0a68f7bdce4f2c99110de6940 (patch) | |
tree | 2bc2eb2f2a3fdbe008cf5dd0d8940dcdbfe5f4d0 /src/rc/rc-misc.c | |
parent | 5d3e85bc310e12411135e98a397b35fb920a72a3 (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-misc.c')
-rw-r--r-- | src/rc/rc-misc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index f1dad3bc..bb401e13 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -126,7 +126,7 @@ env_config(void) char *np; char *npp; char *tok; - const char *sys = NULL; + char *sys = NULL; char buffer[PATH_MAX]; /* Ensure our PATH is prefixed with the system locations first @@ -380,7 +380,7 @@ found: return retval; } -const char *detect_prefix(void) +char *detect_prefix(void) { #ifdef PREFIX return RC_SYS_PREFIX; @@ -389,7 +389,7 @@ const char *detect_prefix(void) #endif } -const char *get_systype(void) +char *get_systype(void) { char *systype = rc_conf_value("rc_sys"); if (systype) { @@ -404,7 +404,7 @@ const char *get_systype(void) return systype; } -const char *detect_container(void) +char *detect_container(void) { char *systype = get_systype(); @@ -459,7 +459,7 @@ const char *detect_container(void) return NULL; } -const char *detect_vm(void) +char *detect_vm(void) { char *systype = get_systype(); |