]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libiberty/pexecute.c
pexecute.c (pexecute): Cast string litrals to char *.
[thirdparty/gcc.git] / libiberty / pexecute.c
index 60a280b8e472931106d9d8bf7f800bdf17851872..cce6e300c5d5bd14b8c8ca2ef3bc4b5a3139df92 100644 (file)
@@ -47,7 +47,7 @@ pexecute (const char *program, char * const *argv, const char *pname,
     {
       if (pex != NULL)
        {
-         *errmsg_fmt = "pexecute already in progress";
+         *errmsg_fmt = (char *) "pexecute already in progress";
          *errmsg_arg = NULL;
          return -1;
        }
@@ -58,7 +58,7 @@ pexecute (const char *program, char * const *argv, const char *pname,
     {
       if (pex == NULL)
        {
-         *errmsg_fmt = "pexecute not in progress";
+         *errmsg_fmt = (char *) "pexecute not in progress";
          *errmsg_arg = NULL;
          return -1;
        }