Commit 6c5844d2 by Ben Elliston Committed by Ben Elliston

pexecute.c (pexecute): Cast string litrals to char *.

	* pexecute.c (pexecute): Cast string litrals to char *.
	* regex.c (re_comp): Cast a call to gettext() to char *.

From-SVN: r101911
parent 12548280
2005-07-12 Ben Elliston <bje@au.ibm.com>
* pexecute.c (pexecute): Cast string litrals to char *.
* regex.c (re_comp): Cast a call to gettext() to char *.
2005-07-07 Kelley Cook <kcook@gcc.gnu.org> 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
* config.table: Delete file. Move former contents into ... * config.table: Delete file. Move former contents into ...
......
...@@ -47,7 +47,7 @@ pexecute (const char *program, char * const *argv, const char *pname, ...@@ -47,7 +47,7 @@ pexecute (const char *program, char * const *argv, const char *pname,
{ {
if (pex != NULL) if (pex != NULL)
{ {
*errmsg_fmt = "pexecute already in progress"; *errmsg_fmt = (char *) "pexecute already in progress";
*errmsg_arg = NULL; *errmsg_arg = NULL;
return -1; return -1;
} }
...@@ -58,7 +58,7 @@ pexecute (const char *program, char * const *argv, const char *pname, ...@@ -58,7 +58,7 @@ pexecute (const char *program, char * const *argv, const char *pname,
{ {
if (pex == NULL) if (pex == NULL)
{ {
*errmsg_fmt = "pexecute not in progress"; *errmsg_fmt = (char *) "pexecute not in progress";
*errmsg_arg = NULL; *errmsg_arg = NULL;
return -1; return -1;
} }
......
...@@ -7814,7 +7814,7 @@ re_comp (const char *s) ...@@ -7814,7 +7814,7 @@ re_comp (const char *s)
if (!s) if (!s)
{ {
if (!re_comp_buf.buffer) if (!re_comp_buf.buffer)
return gettext ("No previous regular expression"); return (char *) gettext ("No previous regular expression");
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment