aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorWilliam Hubbs <william.hubbs@sony.com>2019-08-20 16:06:46 -0500
committerWilliam Hubbs <william.hubbs@sony.com>2019-08-20 16:06:46 -0500
commit8e31614c4b6679fc1bc1f1d1e0779dcedd066a5a (patch)
treeb99d36b536636cd1c5aa94eb12b651062ceca6cb /src/rc
parenta177d15641b438fc9998642df9dc81c67babe62e (diff)
fix clang build
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/rc-sysvinit.c6
-rw-r--r--src/rc/rc-sysvinit.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/rc/rc-sysvinit.c b/src/rc/rc-sysvinit.c
index 4ef074ca..b6ebe661 100644
--- a/src/rc/rc-sysvinit.c
+++ b/src/rc/rc-sysvinit.c
@@ -74,7 +74,7 @@ void sysvinit_runlevel(char rl)
/*
* Set environment variables in the init process.
*/
-void sysvinit_setenv(char *name, char *value)
+void sysvinit_setenv(const char *name, const char *value)
{
struct init_request request;
size_t nl;
@@ -90,7 +90,7 @@ else
vl = 0;
if (nl + vl + 3 >= (int)sizeof(request.i.data))
- return -1;
+ return;
memcpy(request.i.data, name, nl);
if (value) {
@@ -98,5 +98,5 @@ else
memcpy(request.i.data + nl + 1, value, vl);
}
sysvinit_send_cmd(&request);
- return 0;
+ return;
}
diff --git a/src/rc/rc-sysvinit.h b/src/rc/rc-sysvinit.h
index 754a8266..e11322f4 100644
--- a/src/rc/rc-sysvinit.h
+++ b/src/rc/rc-sysvinit.h
@@ -67,6 +67,6 @@ struct init_request {
};
void sysvinit_runlevel(char rl);
-void sysvinit_setenv(char *name, char *value);
+void sysvinit_setenv(const char *name, const char *value);
#endif