summaryrefslogtreecommitdiff
path: root/gcc/libgcov.c
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-20 09:49:58 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-20 09:49:58 +0000
commit8c2fa2f7f88da2e031cadb569896cf343ee4c7bc (patch)
treeaa3e5e221f3a9c23d3c3822e897889162a481c0b /gcc/libgcov.c
parent101b53a4bf2c2bc9f2526e895ac16ac4984cea07 (diff)
downloadgcc-8c2fa2f7f88da2e031cadb569896cf343ee4c7bc.tar.gz
* libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
const qualifier from arg parameter. Remove unnecessary cast to char *. * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove const qualifier from arg 2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143511 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcov.c')
-rw-r--r--gcc/libgcov.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/libgcov.c b/gcc/libgcov.c
index 5abceae6d62..df24d7ef2e7 100644
--- a/gcc/libgcov.c
+++ b/gcc/libgcov.c
@@ -828,7 +828,7 @@ __gcov_fork (void)
that they are not lost. */
int
-__gcov_execl (const char *path, const char *arg, ...)
+__gcov_execl (const char *path, char *arg, ...)
{
va_list ap, aq;
unsigned i, length;
@@ -845,7 +845,7 @@ __gcov_execl (const char *path, const char *arg, ...)
va_end (ap);
args = (char **) alloca (length * sizeof (void *));
- args[0] = (char *) arg;
+ args[0] = arg;
for (i = 1; i < length; i++)
args[i] = va_arg (aq, char *);
va_end (aq);
@@ -859,7 +859,7 @@ __gcov_execl (const char *path, const char *arg, ...)
that they are not lost. */
int
-__gcov_execlp (const char *path, const char *arg, ...)
+__gcov_execlp (const char *path, char *arg, ...)
{
va_list ap, aq;
unsigned i, length;
@@ -876,7 +876,7 @@ __gcov_execlp (const char *path, const char *arg, ...)
va_end (ap);
args = (char **) alloca (length * sizeof (void *));
- args[0] = (char *) arg;
+ args[0] = arg;
for (i = 1; i < length; i++)
args[i] = va_arg (aq, char *);
va_end (aq);
@@ -890,7 +890,7 @@ __gcov_execlp (const char *path, const char *arg, ...)
that they are not lost. */
int
-__gcov_execle (const char *path, const char *arg, ...)
+__gcov_execle (const char *path, char *arg, ...)
{
va_list ap, aq;
unsigned i, length;
@@ -908,7 +908,7 @@ __gcov_execle (const char *path, const char *arg, ...)
va_end (ap);
args = (char **) alloca (length * sizeof (void *));
- args[0] = (char *) arg;
+ args[0] = arg;
for (i = 1; i < length; i++)
args[i] = va_arg (aq, char *);
envp = va_arg (aq, char **);