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
This commit is contained in:
Ben Elliston 2005-07-12 04:40:33 +00:00 committed by Ben Elliston
parent 12548280a2
commit 6c5844d2c6
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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 ...

View File

@ -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,
{ {
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;
} }

View File

@ -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;
} }